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/11243
1.x
Ariya Hidayat 2013-06-01 22:05:05 -07:00
parent f57fa468ab
commit 9f1f56bc3b
1 changed files with 4 additions and 2 deletions

View File

@ -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();
});
});
});