Use UUID instead of step name where possible (#3136)

things I found while looking at  #3109
This commit is contained in:
6543
2024-01-09 05:43:03 +01:00
committed by GitHub
parent 31614d0e38
commit c64340cf8f
5 changed files with 15 additions and 15 deletions

View File

@@ -20,10 +20,10 @@ import (
func TestExitError(t *testing.T) {
err := ExitError{
Name: "build",
UUID: "14534321",
Code: 255,
}
got, want := err.Error(), "build : exit code 255"
got, want := err.Error(), "uuid=14534321: exit code 255"
if got != want {
t.Errorf("Want error message %q, got %q", want, got)
}
@@ -31,9 +31,9 @@ func TestExitError(t *testing.T) {
func TestOomError(t *testing.T) {
err := OomError{
Name: "build",
UUID: "14534321",
}
got, want := err.Error(), "build : received oom kill"
got, want := err.Error(), "uuid=14534321: received oom kill"
if got != want {
t.Errorf("Want error message %q, got %q", want, got)
}