Skip to content

Commit 50ef731

Browse files
committed
Fix PROFILE test for 3.2 Neo4j
Neo4j 3.2 has new default COMPILED runtime. Test that checked profiling output expected to find old runtime value INTERPRETED. This commit makes test accept both.
1 parent a7ab51a commit 50ef731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/v1/session.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ describe('session', () => {
308308
expect(sum.hasPlan()).toBe(true); //When there's a profile, there's a plan
309309
expect(sum.hasProfile()).toBe(true);
310310
expect(sum.profile.operatorType).toBe('ProduceResults');
311-
expect(sum.profile.arguments.runtime).toBe('INTERPRETED');
311+
expect(['INTERPRETED', 'COMPILED']).toContain(sum.profile.arguments.runtime);
312312
expect(sum.profile.identifiers[0]).toBe('n');
313313
expect(sum.profile.children[0].operatorType).toBe('Filter');
314314
expect(sum.profile.rows).toBe(0);

0 commit comments

Comments
 (0)