Skip to content

Commit 39dd99f

Browse files
committed
chore(test): Add sleep after new account creation
1 parent ee2b104 commit 39dd99f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test-utils/pools/token-factory-docker.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import crypto from "node:crypto";
22

33
import { type mastodon } from "../../src";
4+
import { sleep } from "../../src/utils";
45
import { type Tootctl } from "../tootctl";
56
import { type TokenFactory } from "./token-factory";
67

@@ -23,6 +24,9 @@ export class TokenFactoryDocker implements TokenFactory {
2324
confirmed: true,
2425
});
2526

27+
// Wait for the new account to be available
28+
await sleep(5000);
29+
2630
if (this.app.clientId == undefined || this.app.clientSecret == undefined) {
2731
throw new Error("App not created");
2832
}

0 commit comments

Comments
 (0)