File tree Expand file tree Collapse file tree 4 files changed +247
-326
lines changed Expand file tree Collapse file tree 4 files changed +247
-326
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
1414// We count the number of suites run at least to get a vague hint that the
1515// test suite is behaving as it should. Otherwise a bug introduced at the
1616// very core of the system could go unperceived.
17- const suitesRunExpected = 7
17+ const suitesRunExpected = 8
1818
1919var suitesRun int = 0
2020
@@ -85,7 +85,7 @@ func (s *SuccessHelper) TestLogAndSucceed(c *check.C) {
8585
8686type FixtureHelper struct {
8787 calls []string
88- panicOn string
88+ failOn string
8989 skip bool
9090 skipOnN int
9191 sleepOn string
@@ -94,9 +94,10 @@ type FixtureHelper struct {
9494}
9595
9696func (s * FixtureHelper ) trace (name string , c * check.C ) {
97+ c .Log (name )
9798 s .calls = append (s .calls , name )
98- if name == s .panicOn {
99- panic ( name )
99+ if name == s .failOn {
100+ c . FailNow ( )
100101 }
101102 if s .sleep > 0 && s .sleepOn == name {
102103 time .Sleep (s .sleep )
You can’t perform that action at this time.
0 commit comments