Skip to content

Commit 7e6855e

Browse files
committed
test updates
1 parent 7bd532d commit 7e6855e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test-st2-unauthorized.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ describe("auth with invalid st2 API key", async function() {
8282

8383
after(function() {
8484
stop && stop();
85-
robot.server.close();
85+
if (robot.server) {
86+
robot.server.close();
87+
}
8688
robot.shutdown();
8789
// Remove stackstorm.js from the require cache
8890
// https://medium.com/@gattermeier/invalidate-node-js-require-cache-c2989af8f8b0

0 commit comments

Comments
 (0)