mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fix async problem in test cases
This commit is contained in:
@@ -31,15 +31,19 @@ describe('change Node', function() {
|
||||
}
|
||||
}
|
||||
});
|
||||
Context.load();
|
||||
helper.startServer(done);
|
||||
Context.load().then(function () {
|
||||
helper.startServer(done);
|
||||
});
|
||||
});
|
||||
|
||||
afterEach(function(done) {
|
||||
helper.unload();
|
||||
helper.stopServer(done);
|
||||
Context.clean({allNodes:{}});
|
||||
Context.close();
|
||||
helper.unload().then(function () {
|
||||
return Context.clean({allNodes: {}});
|
||||
}).then(function () {
|
||||
return Context.close();
|
||||
}).then(function () {
|
||||
helper.stopServer(done);
|
||||
});
|
||||
});
|
||||
|
||||
it('should load node with defaults', function(done) {
|
||||
|
Reference in New Issue
Block a user