Skip to content

Commit

Permalink
fix(tests): more timeout time for some strategies
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed Jan 24, 2019
1 parent 5cb119f commit 471efc1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/strategies/1337x.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 2 additions & 0 deletions tests/strategies/rutor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ 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')
assert(data.description.includes('Tracklist'), 'description must contrain equal string')
})

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)
Expand Down
2 changes: 2 additions & 0 deletions tests/strategies/rutracker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand Down

0 comments on commit 471efc1

Please sign in to comment.