fix(tests): more timeout time for some strategies
This commit is contained in:
parent
dd982da6b1
commit
8dd8b3769c
@ -5,6 +5,7 @@ describe("1337x", () => {
|
||||
let strategy = new Strategy();
|
||||
|
||||
it("findHash", async function() {
|
||||
this.timeout(8000);
|
||||
const data = await strategy.findHash('1734BCCAA7B05BD4D77B86E17820C840BF0C2EF5')
|
||||
assert.equal(data.name, 'DEgITx - Discography (01.10.2016) FLAC')
|
||||
assert.equal(data.poster, 'http://i58.fastpic.ru/big/2014/0224/62/eec1c9dc98892d5a88b46ade2edc7662.jpg')
|
||||
|
@ -5,6 +5,7 @@ describe("rutor", () => {
|
||||
let rutor = new Rutor({dataDirectory: 'tests/strategies'});
|
||||
|
||||
it("findHash", async function() {
|
||||
this.timeout(5000);
|
||||
const data = await rutor.findHash('7ea9e38a48a8d8f4e1a6807e02dda204bd90c94a')
|
||||
assert.equal(data.name, 'DJ Farta - Пацанская сборка в тачку. Vol 8 (2015) MP3')
|
||||
assert.equal(data.poster, 'http://s016.radikal.ru/i337/1509/72/f76a929da813.jpg')
|
||||
@ -12,6 +13,7 @@ describe("rutor", () => {
|
||||
})
|
||||
|
||||
it("findHash second", async function() {
|
||||
this.timeout(5000);
|
||||
const data = await rutor.findHash('158448f6afbedb079aaf3c4695fb43e7dfa54515')
|
||||
assert.equal(data.name, 'Наруто: Ураганные Хроники / Naruto Shippuuden Movie [4 фильм] (2007) DVDRip')
|
||||
assert.equal(data.rutorThreadId, 5850)
|
||||
|
@ -5,6 +5,7 @@ describe("rutracker", () => {
|
||||
let rutracker = new Rutracker();
|
||||
|
||||
it("findHash", async function() {
|
||||
this.timeout(5000);
|
||||
const data = await rutracker.findHash('FFEDA8DF683F34A08BE89026114E6C05F881DCCE')
|
||||
assert.equal(data.name, '(Vocaloid, Metalcore, Deathcore, Dubstep) Rice Records - Bleak Times Ahead - 2013, MP3, 320 kbps')
|
||||
assert.equal(data.poster, 'http://i51.fastpic.ru/big/2013/0225/b1/c53d9e3253ac8ade321d7bed32d898b1.jpg')
|
||||
@ -15,6 +16,7 @@ describe("rutracker", () => {
|
||||
})
|
||||
|
||||
it("parse", async function() {
|
||||
this.timeout(5000);
|
||||
rutracker.threadId = 4220109
|
||||
const data = await rutracker.parse()
|
||||
assert.equal(data.name, '(Doom metal / Melodic metal / Instrumental) Folie A Deux - Demo - 2012, MP3, 128-320 kbps')
|
||||
|
Loading…
Reference in New Issue
Block a user