Skip to content

Commit 6bbd852

Browse files
committed
remove assert.SetDefault
1 parent a744f45 commit 6bbd852

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

samples/main-play.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,6 @@ func doPlayMain() {
112112
// Keep here that you can play without changing imports
113113
assert.That(true)
114114

115-
// If asserts are treated as panics instead of errors, you get the stack trace.
116-
// you can try that by taking the next line out of the comment:
117-
assert.SetDefault(assert.Development)
118-
119-
// same thing but one line assert msg
120-
//assert.SetDefault(assert.Production)
121-
122115
// To see how automatic stack tracing works.
123116
//err2.SetErrorTracer(os.Stderr)
124117

0 commit comments

Comments
 (0)