mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix race condition with movies test
This commit is contained in:
parent
84d9ccb8bb
commit
c96365fe0a
@ -1,12 +1,15 @@
|
||||
import { beforeAll, describe, expect, it } from "bun:test";
|
||||
import { expectStatus } from "tests/utils";
|
||||
import { seedMovie } from "~/controllers/seed/movies";
|
||||
import { db } from "~/db";
|
||||
import { shows } from "~/db/schema";
|
||||
import { bubble } from "~/models/examples";
|
||||
import { getMovie } from "../helpers";
|
||||
|
||||
let bubbleId = "";
|
||||
|
||||
beforeAll(async () => {
|
||||
await db.delete(shows);
|
||||
const ret = await seedMovie(bubble);
|
||||
if (!("status" in ret)) bubbleId = ret.id;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user