diff --git a/test/axe/holy-grail.js b/test/axe/holy-grail.js index faddaa60..a77dc946 100644 --- a/test/axe/holy-grail.js +++ b/test/axe/holy-grail.js @@ -413,11 +413,7 @@ describe("The Holy Grail AXE Test!", function(){ },1000); }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/1putackget.js b/test/panic/1putackget.js index 72606f39..250e15b9 100644 --- a/test/panic/1putackget.js +++ b/test/panic/1putackget.js @@ -188,11 +188,7 @@ describe("Put ACK", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/2getget.js b/test/panic/2getget.js index 59e7be0e..ed6de48e 100644 --- a/test/panic/2getget.js +++ b/test/panic/2getget.js @@ -153,11 +153,7 @@ describe("Put ACK", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/3puts.js b/test/panic/3puts.js index c64a759c..bbd313c2 100644 --- a/test/panic/3puts.js +++ b/test/panic/3puts.js @@ -125,11 +125,7 @@ describe("Put ACK", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/4dht.js b/test/panic/4dht.js index 1689aed3..78057fd8 100644 --- a/test/panic/4dht.js +++ b/test/panic/4dht.js @@ -179,11 +179,7 @@ describe("Put ACK", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/b2s2s2b.js b/test/panic/b2s2s2b.js index e9e0fc3a..f9271aba 100644 --- a/test/panic/b2s2s2b.js +++ b/test/panic/b2s2s2b.js @@ -166,11 +166,7 @@ describe("Load test "+ config.browsers +" browser(s) across "+ config.servers +" }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/bulkimport.js b/test/panic/bulkimport.js index c64a759c..bbd313c2 100644 --- a/test/panic/bulkimport.js +++ b/test/panic/bulkimport.js @@ -125,11 +125,7 @@ describe("Put ACK", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/holy-grail.js b/test/panic/holy-grail.js index 26ab13e4..ec9f911c 100644 --- a/test/panic/holy-grail.js +++ b/test/panic/holy-grail.js @@ -267,11 +267,7 @@ describe("The Holy Grail Test!", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/livestream.js b/test/panic/livestream.js index de71545e..6120f369 100644 --- a/test/panic/livestream.js +++ b/test/panic/livestream.js @@ -180,11 +180,7 @@ describe("Broadcast Video", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/no-override.js b/test/panic/no-override.js index 8def30d3..a1e01be5 100644 --- a/test/panic/no-override.js +++ b/test/panic/no-override.js @@ -118,11 +118,7 @@ describe("No Empty Object on .Once", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/on-recovery.js b/test/panic/on-recovery.js index df668823..4fc6ffe6 100644 --- a/test/panic/on-recovery.js +++ b/test/panic/on-recovery.js @@ -217,7 +217,7 @@ describe("gun.on should receive updates after crashed relay peer comes back onli }); after("Everything shut down.", function(){ - return bob.run(function(){ + return require('./util/open').cleanup() || bob.run(function(){ process.exit(); }); }); diff --git a/test/panic/radisk.js b/test/panic/radisk.js index a86b2a0f..cab31467 100644 --- a/test/panic/radisk.js +++ b/test/panic/radisk.js @@ -275,11 +275,7 @@ describe("Make sure the Radix Storage Engine (RAD) works.", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/scale.js b/test/panic/scale.js index ce96e041..33ed3d9d 100644 --- a/test/panic/scale.js +++ b/test/panic/scale.js @@ -223,11 +223,7 @@ describe("Stress test GUN with SEA users causing PANIC!", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/set.js b/test/panic/set.js index 9dc22bb6..d72db6b6 100644 --- a/test/panic/set.js +++ b/test/panic/set.js @@ -188,11 +188,7 @@ describe("Make sure SEA syncs correctly", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/speak.js b/test/panic/speak.js index bea9d3d1..94a7bde5 100644 --- a/test/panic/speak.js +++ b/test/panic/speak.js @@ -310,11 +310,7 @@ describe("Stress test GUN with SEA users causing PANIC!", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/thread.js b/test/panic/thread.js index c72585fd..01148578 100644 --- a/test/panic/thread.js +++ b/test/panic/thread.js @@ -218,11 +218,7 @@ describe("Private Message Threading", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/users.js b/test/panic/users.js index ed7287e6..b08b9bfe 100644 --- a/test/panic/users.js +++ b/test/panic/users.js @@ -253,11 +253,7 @@ describe("End-to-End Encryption on User Accounts", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); }); diff --git a/test/panic/who.js b/test/panic/who.js index f9f2c971..54a0e6f9 100644 --- a/test/panic/who.js +++ b/test/panic/who.js @@ -233,11 +233,7 @@ describe("Make sure SEA syncs correctly", function(){ }); after("Everything shut down.", function(){ - browsers.run(function(){ - //location.reload(); - //setTimeout(function(){ - //}, 15 * 1000); - }); + require('./util/open').cleanup(); return servers.run(function(){ process.exit(); });