mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 17:48:21 +00:00
Move cncd/pipeline/pipeline/ to pipeline/ (#347)
* Refactor: move cncd/pipeline/ to pipeline/ * Refactor: move pipeline/pipeline/ to pipeline/
This commit is contained in:
26
pipeline/error_test.go
Normal file
26
pipeline/error_test.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package pipeline
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestExitError(t *testing.T) {
|
||||
err := ExitError{
|
||||
Name: "build",
|
||||
Code: 255,
|
||||
}
|
||||
got, want := err.Error(), "build : exit code 255"
|
||||
if got != want {
|
||||
t.Errorf("Want error message %q, got %q", want, got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestOomError(t *testing.T) {
|
||||
err := OomError{
|
||||
Name: "build",
|
||||
}
|
||||
got, want := err.Error(), "build : received oom kill"
|
||||
if got != want {
|
||||
t.Errorf("Want error message %q, got %q", want, got)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user