Skip to content

Commit e46c731

Browse files
committed
tests: re-enable fixture test
1 parent af9870c commit e46c731

File tree

4 files changed

+247
-326
lines changed

4 files changed

+247
-326
lines changed

check_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

1919
var suitesRun int = 0
2020

@@ -85,7 +85,7 @@ func (s *SuccessHelper) TestLogAndSucceed(c *check.C) {
8585

8686
type 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

9696
func (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)

0 commit comments

Comments
 (0)