Skip to content

Commit

Permalink
Stop traceback correctly when rapid is vendored
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingmutant committed Sep 2, 2020
1 parent f03305c commit 93c490e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func panicToError(p interface{}, skip int) *testError {

b := &strings.Builder{}
f, more, skipSpecial := runtime.Frame{}, true, true
for more && f.Function != tracebackStop {
for more && !strings.HasSuffix(f.Function, tracebackStop) {
f, more = frames.Next()

if skipSpecial && (tracebackBlacklist[f.Function] || strings.HasPrefix(f.Function, runtimePrefix)) {
Expand Down

0 comments on commit 93c490e

Please sign in to comment.