Skip to content

Commit 3cf9687

Browse files
committed
fix flaky node test
1 parent e07e07c commit 3cf9687

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/hub/test/session.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ describe('Session', () => {
3434
['sets a did', { user: { id: 'specialID123' } }, { did: 'specialID123' }],
3535
['sets a timestamp', { timestamp: time }, { timestamp: new Date(time * 1000).toISOString() }],
3636
['sets a sid', { sid: '99705f22a3f1468e95ba7386e84691aa' }, { sid: '99705f22a3f1468e95ba7386e84691aa' }],
37-
['requires custom sid to be of certain length', { sid: '123' }, { sid: expect.not.stringMatching('123') }],
38-
['requires custom sid to be of certain length', { sid: '123' }, { sid: expect.not.stringMatching('123') }],
37+
[
38+
'requires custom sid to be of certain length',
39+
{ sid: 'specialID123' },
40+
{ sid: expect.not.stringMatching('specialID123') },
41+
],
3942
['sets an init', { init: false }, { init: false }],
4043
['sets an did', { did: 'specialID123' }, { did: 'specialID123' }],
4144
['overwrites user did with custom did', { did: 'custom-did', user: { id: 'user-id' } }, { did: 'custom-did' }],

0 commit comments

Comments
 (0)