]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix live quota tests
authorChocobozzz <me@florianbigard.com>
Mon, 22 May 2023 14:23:28 +0000 (16:23 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 22 May 2023 14:23:28 +0000 (16:23 +0200)
server/tests/api/live/live-constraints.ts

index 7af6af193352c47b6006a39f0fbc0b580f05293b..1c8d065f79b5f1031f09cb9515982a707ced6856 100644 (file)
@@ -183,7 +183,7 @@ describe('Test live constraints', function () {
       await wait(500)
 
       quotaUser = await servers[0].users.getMyQuotaUsed({ token: userAccessToken })
-    } while (quotaUser.videoQuotaUsed < baseQuota.videoQuotaUsed)
+    } while (quotaUser.videoQuotaUsed <= baseQuota.videoQuotaUsed)
 
     const { data } = await servers[0].users.list()
     const quotaAdmin = data.find(u => u.username === 'user1')