From d48ff09d27d234425c3e9f091ae9072d8e6d8b7a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Dec 2017 10:07:57 +0100 Subject: Use sequelize scopes --- server/tests/api/single-server.ts | 3 --- server/tests/api/video-abuse.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'server/tests') diff --git a/server/tests/api/single-server.ts b/server/tests/api/single-server.ts index 174fb480d..7f4351f5e 100644 --- a/server/tests/api/single-server.ts +++ b/server/tests/api/single-server.ts @@ -132,7 +132,6 @@ describe('Test a single server', function () { expect(video.serverHost).to.equal('localhost:9001') expect(video.accountName).to.equal('root') expect(video.isLocal).to.be.true - expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ]) expect(dateIsValid(video.createdAt)).to.be.true expect(dateIsValid(video.updatedAt)).to.be.true @@ -181,7 +180,6 @@ describe('Test a single server', function () { expect(video.serverHost).to.equal('localhost:9001') expect(video.accountName).to.equal('root') expect(video.isLocal).to.be.true - expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ]) expect(dateIsValid(video.createdAt)).to.be.true expect(dateIsValid(video.updatedAt)).to.be.true expect(video.channel.name).to.equal('Default root channel') @@ -248,7 +246,6 @@ describe('Test a single server', function () { expect(video.serverHost).to.equal('localhost:9001') expect(video.accountName).to.equal('root') expect(video.isLocal).to.be.true - expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ]) expect(dateIsValid(video.createdAt)).to.be.true expect(dateIsValid(video.updatedAt)).to.be.true diff --git a/server/tests/api/video-abuse.ts b/server/tests/api/video-abuse.ts index 60bee9c3d..4a0b6b504 100644 --- a/server/tests/api/video-abuse.ts +++ b/server/tests/api/video-abuse.ts @@ -47,7 +47,7 @@ describe('Test video abuses', function () { await uploadVideo(servers[1].url, servers[1].accessToken, video2Attributes) // Wait videos propagation, server 2 has transcoding enabled - await wait(10000) + await wait(15000) const res = await getVideosList(servers[0].url) const videos = res.body.data -- cgit v1.2.3