Skip to content

Commit

Permalink
chore(test): Add sleep after new account creation
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Oct 18, 2023
1 parent ee2b104 commit 39dd99f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test-utils/pools/token-factory-docker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import crypto from "node:crypto";

import { type mastodon } from "../../src";
import { sleep } from "../../src/utils";
import { type Tootctl } from "../tootctl";
import { type TokenFactory } from "./token-factory";

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

// Wait for the new account to be available
await sleep(5000);

if (this.app.clientId == undefined || this.app.clientSecret == undefined) {
throw new Error("App not created");
}
Expand Down

0 comments on commit 39dd99f

Please sign in to comment.