Skip to content

Commit 2c30606

Browse files
committed
give it more time
1 parent 4b67d43 commit 2c30606

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

tests/integration/common/connectionManager.oidc.test.ts

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -168,25 +168,28 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
168168
};
169169
};
170170

171-
const status: ConnectionStatus = await vi.waitFor(async () => {
172-
const result = (await state.serviceProvider.runCommand("admin", {
173-
connectionStatus: 1,
174-
})) as unknown as ConnectionStatus | undefined;
175-
176-
if (!result) {
177-
throw new Error("Status can not be undefined. Retrying.");
178-
}
179-
180-
if (!result.authInfo.authenticatedUsers.length) {
181-
throw new Error("No authenticated users found. Retrying.");
182-
}
183-
184-
if (!result.authInfo.authenticatedUserRoles.length) {
185-
throw new Error("No authenticated user roles found. Retrying.");
186-
}
187-
188-
return result;
189-
});
171+
const status: ConnectionStatus = await vi.waitFor(
172+
async () => {
173+
const result = (await state.serviceProvider.runCommand("admin", {
174+
connectionStatus: 1,
175+
})) as unknown as ConnectionStatus | undefined;
176+
177+
if (!result) {
178+
throw new Error("Status can not be undefined. Retrying.");
179+
}
180+
181+
if (!result.authInfo.authenticatedUsers.length) {
182+
throw new Error("No authenticated users found. Retrying.");
183+
}
184+
185+
if (!result.authInfo.authenticatedUserRoles.length) {
186+
throw new Error("No authenticated user roles found. Retrying.");
187+
}
188+
189+
return result;
190+
},
191+
{ timeout: 5000 }
192+
);
190193

191194
expect(status.authInfo.authenticatedUsers[0]).toEqual({
192195
user: "dev/testuser",

0 commit comments

Comments
 (0)