Skip to content

Commit

Permalink
Fix test with multiple web workers in the same environment
Browse files Browse the repository at this point in the history
  • Loading branch information
cyril-sf committed Jul 11, 2013
1 parent cb4f5e0 commit 89f7962
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -903,23 +903,26 @@ function suite(adapter, extras) {
capabilities: ['assertions2']
});

stop();
stop(2);

var AssertionsService = Oasis.Service.extend({
events: {
ok1: function() {
ok(true, "First event was fired");

start();

sandbox2.start();

sandbox1.promise.then( function() {
sandbox1.terminate();
});
},

ok2: function() {
ok(true, "Second event was fired");

sandbox1.promise.then( function() {
sandbox1.terminate();
start();
});
start();
}
}
});
Expand Down

0 comments on commit 89f7962

Please sign in to comment.