瀏覽代碼

fail fast

Darien Raymond 8 年之前
父節點
當前提交
afe190316d
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      testing/assert/assert.go

+ 1 - 2
testing/assert/assert.go

@@ -19,8 +19,7 @@ type Assert struct {
 }
 
 func (v *Assert) Fail(message string) {
-	fmt.Println(decorate(message))
-	v.t.Fail()
+	v.t.Fatal(decorate(message))
 }
 
 func getCaller() (string, int) {