We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29e7752 commit 167a139Copy full SHA for 167a139
test/v1/session.test.js
@@ -1084,7 +1084,9 @@ describe('session', () => {
1084
}
1085
1086
function expectTransactionTerminatedError(error) {
1087
- expect(error.message.toLowerCase().indexOf('transaction terminated') >= 0).toBeTruthy();
+ const message = error.message.toLowerCase();
1088
+ expect(message.indexOf('transaction')).not.toBeLessThan(0);
1089
+ expect(message.indexOf('terminated')).not.toBeLessThan(0);
1090
1091
1092
function readAllNodeIds() {
0 commit comments