Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit 9f1f56b

Browse files
committed
Unit tests: terminate any web servers after finishing the tests.
Issue #11163: #11163 Issue #11243: #11243
1 parent f57fa46 commit 9f1f56b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/webpage-spec.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1180,8 +1180,9 @@ describe("WebPage object", function() {
11801180

11811181
page.open(url, function (status) {
11821182
expect(status == 'success').toEqual(true);
1183-
handled = true;
1184-
});
1183+
handled = true;
1184+
server.close();
1185+
});
11851186
});
11861187
});
11871188

@@ -1300,6 +1301,7 @@ describe("WebPage object", function() {
13001301
runs(function() {
13011302
expect(handled).toEqual(2);
13021303
page.close();
1304+
server.close();
13031305
});
13041306
});
13051307
});

0 commit comments

Comments
 (0)