Skip to content

Commit

Permalink
correct error message in mocked binVersion func
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgopack4 committed Sep 19, 2024
1 parent f88230e commit c3bb305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/builder/internal/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ var validBinVersionFunc binVersionFunc = func(_ debugReadBuildInfoFunc) (string,
}

var invalidBinVersionFunc binVersionFunc = func(_ debugReadBuildInfoFunc) (string, error) {
return "", fmt.Errorf("failed to get version")
return "", fmt.Errorf("failed to read build info")
}

func TestVersionCommand(t *testing.T) {
Expand Down

0 comments on commit c3bb305

Please sign in to comment.