You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-23 21:44:44 +02:00
@@ -86,9 +86,7 @@ func TestSplitVolumeParts(t *testing.T) {
|
||||
for _, test := range testdata {
|
||||
results, err := splitVolumeParts(test.from)
|
||||
if test.success != (err == nil) {
|
||||
if reflect.DeepEqual(results, test.to) != test.success {
|
||||
t.Errorf("Expect %q matches %q is %v", test.from, results, test.to)
|
||||
}
|
||||
assert.Equal(t, test.success, reflect.DeepEqual(results, test.to))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user