Fix flaky test

This commit is contained in:
Ajay
2022-07-29 12:06:38 -04:00
parent ef93c692e5
commit 6239e53091

View File

@@ -685,7 +685,7 @@ describe("voteOnSponsorTime", () => {
it("Should not be able to revive full video segment as non-vip", (done) => { it("Should not be able to revive full video segment as non-vip", (done) => {
const UUID = "full-video-uuid-1"; const UUID = "full-video-uuid-1";
postVote("VIPUser", UUID, 0); // downvote as VIP postVote("VIPUser", UUID, 0).then(() => {
postVote("randomID3", UUID, 1) postVote("randomID3", UUID, 1)
.then(async res => { .then(async res => {
assert.strictEqual(res.status, 200); assert.strictEqual(res.status, 200);
@@ -696,3 +696,4 @@ describe("voteOnSponsorTime", () => {
.catch(err => done(err)); .catch(err => done(err));
}); });
}); });
});