Skip to content

Commit f434c5f

Browse files
committed
add assertion
1 parent 4c54c68 commit f434c5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/verifier/check.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ func (verifier *Verifier) CheckWorker(ctxIn context.Context) error {
139139
err := eg.Wait()
140140

141141
if succeeded {
142+
if !errors.Is(err, context.Canceled) {
143+
panic("success should mean that err is context.Canceled, not: " + err.Error())
144+
}
145+
142146
err = nil
143147
}
144148

0 commit comments

Comments
 (0)