diff --git a/server/src/server/router/ir/usc/_playtype/router.test.ts b/server/src/server/router/ir/usc/_playtype/router.test.ts index 2b279d756..8fd934596 100644 --- a/server/src/server/router/ir/usc/_playtype/router.test.ts +++ b/server/src/server/router/ir/usc/_playtype/router.test.ts @@ -71,17 +71,18 @@ t.test("GET /ir/usc/Keyboard", async (t) => { }); t.test("GET /ir/usc/Controller", async (t) => { - await db["api-tokens"].insert({ - userID: 1, - identifier: "USC Token", - permissions: { - submit_score: true, - }, - token: "foo", - fromAPIClient: null, - }); - t.beforeEach(ResetDBState); + t.beforeEach(async () => { + await db["api-tokens"].insert({ + userID: 1, + identifier: "USC Token", + permissions: { + submit_score: true, + }, + token: "foo", + fromAPIClient: null, + }); + }); TestAuth("/ir/usc/Controller");