Skip to content

Commit 4565698

Browse files
committed
relax constraint in session prose test
1 parent 6f88dce commit 4565698

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/sessions/sessions.prose.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ describe('Sessions Prose Tests', () => {
107107
expect(allResults).to.have.lengthOf(operations.length);
108108
expect(events).to.have.lengthOf(operations.length);
109109

110-
// This is a guarantee in node, unless you are performing a transaction (which is not being done in this test)
111-
expect(new Set(events.map(ev => ev.command.lsid.id.toString('hex')))).to.have.lengthOf(1);
110+
const uniqueSessionIds = new Set(events.map(ev => ev.command.lsid.id.toString('hex')));
111+
expect(uniqueSessionIds).to.have.length.lessThanOrEqual(2);
112112
});
113113
});
114114

0 commit comments

Comments
 (0)