Explorar o código

tweaked saucelabs runner error handling

Andy Li %!s(int64=10) %!d(string=hai) anos
pai
achega
b48654cf2e
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      tests/unit/src/RunSauceLabs.hx

+ 2 - 3
tests/unit/src/RunSauceLabs.hx

@@ -197,7 +197,6 @@ class RunSauceLabs {
 						.sauceJobUpdate({ passed: true, tags: tags.concat(["errored"]) })
 						.then(function() return browser.quit())
 						.timeout(commandTimeout * 1000)
-						.fail(onErrored)
 						.then(function() return testBrowser(caps, trials));
 				} else {
 					allSuccess = false;
@@ -274,9 +273,9 @@ class RunSauceLabs {
 				})
 				.then(function()
 					return browser.sauceJobUpdate({ passed: browserSuccess }))
+				.fail(onErrored)
 				.then(function()
-					return browser.quit())
-				.fail(onErrored);
+					return browser.quit());
 		}
 
 		browsers