aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/example.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/testing/example.go b/src/testing/example.go
index f618b06de1..42ee555cb2 100644
--- a/src/testing/example.go
+++ b/src/testing/example.go
@@ -93,8 +93,7 @@ func (eg *InternalExample) processRunResult(stdout string, timeSpent time.Durati
if recovered != nil {
// Propagate the previously recovered result, by panicking.
panic(recovered)
- }
- if !finished && recovered == nil {
+ } else if !finished {
panic(errNilPanicOrGoexit)
}