mirror of https://github.com/vitalif/phantomjs
Unit tests: terminate any web servers after finishing the tests.
Issue #11163: https://github.com/ariya/phantomjs/issues/11163 Issue #11243: https://github.com/ariya/phantomjs/issues/112431.x
parent
f57fa468ab
commit
9f1f56bc3b
|
@ -1180,8 +1180,9 @@ describe("WebPage object", function() {
|
|||
|
||||
page.open(url, function (status) {
|
||||
expect(status == 'success').toEqual(true);
|
||||
handled = true;
|
||||
});
|
||||
handled = true;
|
||||
server.close();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -1300,6 +1301,7 @@ describe("WebPage object", function() {
|
|||
runs(function() {
|
||||
expect(handled).toEqual(2);
|
||||
page.close();
|
||||
server.close();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue