Skip to content

Commit

Permalink
test(helm): Add command to update golden files (#890)
Browse files Browse the repository at this point in the history
While we have docs in `Contributing.md`, It seems better to
have that command emitted in the error message. It is much
more straightforward this way.
  • Loading branch information
Pothulapati authored Mar 1, 2023
1 parent abe3b3c commit 2d3496d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/charts/dragonfly/golden_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestHelmRender(t *testing.T) {
}

if string(expected) != output {
t.Fatalf("Expected %s, but got %s", string(expected), output)
t.Fatalf("Expected %s, but got %s\n. Update golden files by running `go test -v ./... -update`", string(expected), output)
}
}

Expand Down

0 comments on commit 2d3496d

Please sign in to comment.