Skip to content

Commit

Permalink
fix: vm2 returns a different timed out error message on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard Lavuš committed Jun 29, 2020
1 parent eba3180 commit a2d147e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/interpreter/Sandbox.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { evalScript, SCRIPT_TIMEOUT } from './Sandbox';
import { evalScript } from './Sandbox';

describe('sandbox', () => {
beforeEach(() => {
Expand Down Expand Up @@ -61,7 +61,7 @@ describe('sandbox', () => {

it('Halting problem (Stalling the event loop)', () => {
expect(() => evalScript('while(true) { 1 + 1 }')).toThrow(
`Script execution timed out after ${SCRIPT_TIMEOUT}ms`
'Script execution timed out'
);
});

Expand Down

0 comments on commit a2d147e

Please sign in to comment.