Skip to content

Commit

Permalink
helper/resource: Improve "unsupported test mode" message (#925)
Browse files Browse the repository at this point in the history
The "unsupported test mode" message does not tell you which step of the test failed, unlike the other fatal errors in the `runNewTest` function here. This change adds the step number to the error message to make it more useful and more consistent.
  • Loading branch information
armsnyder committed Apr 12, 2022
1 parent 3d0fec0 commit 08f695a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper/resource/testing_new.go
Expand Up @@ -197,7 +197,7 @@ func runNewTest(ctx context.Context, t testing.T, c TestCase, helper *plugintest
continue
}

t.Fatal("Unsupported test mode")
t.Fatalf("Step %d/%d, unsupported test mode", i+1, len(c.Steps))
}
}

Expand Down

0 comments on commit 08f695a

Please sign in to comment.