Skip to content

Commit

Permalink
Update t.Error to t.FailNow (pulumi#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
stack72 authored Oct 17, 2019
1 parent fdf37dd commit 956710d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/test/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ func getGkeVersion() string {
func getCwd(t *testing.T) string {
cwd, err := os.Getwd()
if err != nil {
t.Error("expected a valid working directory", err)
t.FailNow()
}

return cwd
Expand All @@ -1033,7 +1033,7 @@ func getCwd(t *testing.T) string {
func getBaseOptions(t *testing.T) integration.ProgramTestOptions {
overrides, err := integration.DecodeMapString(os.Getenv("PULUMI_TEST_NODE_OVERRIDES"))
if err != nil {
t.Error("expected valid override map:", err.Error())
t.FailNow()
}

base := integration.ProgramTestOptions{
Expand Down

0 comments on commit 956710d

Please sign in to comment.