Skip to content

Commit 5b9bbc9

Browse files
committed
chore: increase wait time for pipeline
1 parent f3fecd0 commit 5b9bbc9

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

__test__/index.test.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,23 @@ const verificationRequests =
7676
'query {_verification_requests { verification_requests { id token email expires identifier } } }';
7777

7878
describe('Integration Tests - authorizer-js', () => {
79-
let container: StartedTestContainer;
79+
let container: StartedTestContainer | undefined;
8080

8181
let authorizer: Authorizer;
8282

8383
beforeAll(async () => {
8484
const { args, clientId } = buildAuthorizerCliArgs();
8585

86-
container = await new GenericContainer('lakhansamani/authorizer:2.0.0-rc.6')
86+
container = await new GenericContainer('lakhansamani/authorizer:latest')
8787
.withCommand(args)
8888
.withExposedPorts(8080)
8989
.withWaitStrategy(Wait.forHttp('/health', 8080).forStatusCode(200))
90-
.withStartupTimeout(300000) // 5 minutes
90+
.withStartupTimeout(900000) // 15 minutes (CI can be slow)
91+
// Surface container stdout/stderr to help diagnose CI startup failures.
92+
.withLogConsumer((chunk) => {
93+
// Avoid changing log format; just mirror what container prints.
94+
process.stdout.write(chunk.toString());
95+
})
9196
.start();
9297

9398
authorizerConfig.authorizerURL = `http://${container.getHost()}:${container.getMappedPort(
@@ -102,7 +107,7 @@ describe('Integration Tests - authorizer-js', () => {
102107
});
103108

104109
afterAll(async () => {
105-
await container.stop();
110+
if (container) await container.stop();
106111
});
107112

108113
it('should signup with email verification enabled', async () => {

0 commit comments

Comments
 (0)