Skip to content

Commit

Permalink
Unify boot timeout test for web and node
Browse files Browse the repository at this point in the history
  • Loading branch information
appurva21 committed May 7, 2024
1 parent 7415321 commit 60654f3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 56 deletions.
17 changes: 17 additions & 0 deletions test/unit/bootTimeout.test.js
@@ -0,0 +1,17 @@
const uvm = require('../../lib'),
expect = require('chai').expect;

describe('with bootTimeout option', function () {
it('should error out if not loaded within bootTimeout limit', function (done) {
uvm.spawn({
bootTimeout: 100,
bootCode: 'while(1) {}'
}, function (err, context) {
expect(err).to.be.an('error').that.has.property('message');

expect(err.message).to.equal('uvm: boot timed out after 100ms.');
context && context.on('error', done);
done();
});
});
});
36 changes: 0 additions & 36 deletions test/unit/browser/bootTimeout.test.js

This file was deleted.

20 changes: 0 additions & 20 deletions test/unit/node/bootTimeout.test.js

This file was deleted.

0 comments on commit 60654f3

Please sign in to comment.