Skip to content

Commit 4ca8603

Browse files
committed
fix: flacky integration test with two possible error code
1 parent f89a914 commit 4ca8603

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/integration/clientFailures.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ describe('Client failures', function () {
9090
// Wait for subscribe to be effective and error to surface
9191
await waitFor(5000, () => errorCode !== undefined);
9292

93-
// Check for gRPC auth error and closed connection
94-
expect(errorCode).toBe(5);
95-
expect(grpcStatusCode).toBe(5);
93+
// Check for gRPC auth error or permission error and closed connection
94+
expect(errorCode === 5 || errorCode === 7).toBeTruthy();
95+
expect(grpcStatusCode === 5 || grpcStatusCode === 7).toBeTruthy();
9696
expect(isConnectionClosed).toBeTrue();
9797
});
9898

0 commit comments

Comments
 (0)