We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b05d43a commit caf9aadCopy full SHA for caf9aad
1 file changed
starlark/eval_test.go
@@ -1203,6 +1203,9 @@ func TestExecutionSteps(t *testing.T) {
1203
if fmt.Sprint(err) != "Starlark computation canceled: too many steps" {
1204
t.Errorf("execution returned error %q, want cancellation", err)
1205
}
1206
+ if !errors.Is(err, starlark.ErrCanceled) {
1207
+ t.Errorf("exectution didn't return error starlark.ErrCanceled")
1208
+ }
1209
1210
thread.Steps = 0
1211
thread.Uncancel()
0 commit comments