Explorar o código

return done in smoke test

Henry Oswald %!s(int64=12) %!d(string=hai) anos
pai
achega
948183b685
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      services/web/test/smoke/coffee/SmokeTests.coffee

+ 2 - 2
services/web/test/smoke/coffee/SmokeTests.coffee

@@ -20,8 +20,8 @@ describe "Opening", ->
 				if err? then done(err)
 				csrfMatches = stdout.match("<input name=\"_csrf\" type=\"hidden\" value=\"(.*?)\">")
 				if !csrfMatches?
-					logger.err stdout:stdout, "smoke test: does not hace csrf token"
-					return("smoke test: does not hace csrf token")
+					logger.err stdout:stdout, "smoke test: does not have csrf token"
+					return done("smoke test: does not have csrf token")
 				csrf = csrfMatches[1]
 
 				# Change cookie to be non secure so curl will send it