]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/users/users-multiple-servers.ts
Fix tests
[github/Chocobozzz/PeerTube.git] / server / tests / api / users / users-multiple-servers.ts
index 0483b9c3de07c7a1ed1b0be66ce904a362efec3b..3c4eaff14976ac96a9e97872c8c69abb50d103ba 100644 (file)
@@ -65,8 +65,7 @@ describe('Test users with multiple servers', function () {
     const res = await getMyUserInformation(servers[0].url, servers[0].accessToken)
     user = res.body
 
-    const test = await testImage(servers[0].url, 'avatar2-resized', user.account.avatar.path, '.png')
-    expect(test).to.equal(true)
+    await testImage(servers[0].url, 'avatar2-resized', user.account.avatar.path, '.png')
 
     await wait(5000)
   })
@@ -83,8 +82,7 @@ describe('Test users with multiple servers', function () {
       expect(rootServer1Get.name).to.equal('root')
       expect(rootServer1Get.host).to.equal('localhost:9001')
 
-      const test = await testImage(server.url, 'avatar2-resized', rootServer1Get.avatar.path, '.png')
-      expect(test).to.equal(true)
+      await testImage(server.url, 'avatar2-resized', rootServer1Get.avatar.path, '.png')
     }
   })