mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 23:33:04 +00:00
Use UUID instead of step name where possible (#3136)
things I found while looking at #3109
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user