Skip to content

Commit 17d11ec

Browse files
committed
Don't assert on the exact number of logger listeners
1 parent 5d11ec9 commit 17d11ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/atlas-service/src/main.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,11 @@ describe('CompassAuthServiceMain', function () {
331331
} as any;
332332
await CompassAuthService.init(preferences, {} as any);
333333
CompassAuthService['config'] = defaultConfig;
334-
expect(getListenerCount(logger)).to.eq(30);
334+
335+
// We expect that the oidc plugin registers a number of listeners
336+
// upon creation, which should get unregistered when we sign out.
337+
expect(getListenerCount(logger)).to.be.greaterThan(0);
338+
335339
// We did all preparations, reset sinon history for easier assertions
336340
sandbox.resetHistory();
337341

0 commit comments

Comments
 (0)