ソースを参照

return done in smoke test

Henry Oswald 12 年 前
親
コミット
948183b685
1 ファイル変更、2 行追加、2 行削除
  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)
 				if err? then done(err)
 				csrfMatches = stdout.match("<input name=\"_csrf\" type=\"hidden\" value=\"(.*?)\">")
 				csrfMatches = stdout.match("<input name=\"_csrf\" type=\"hidden\" value=\"(.*?)\">")
 				if !csrfMatches?
 				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]
 				csrf = csrfMatches[1]
 
 
 				# Change cookie to be non secure so curl will send it
 				# Change cookie to be non secure so curl will send it