You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-12-05 21:56:26 +02:00
Remove github.com/kr/pretty in favor of assert.EqualValues() (#564)
* remove github.com/kr/pretty in favor of assert.EqualValues() * code format
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
package compiler
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/kr/pretty"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
@@ -30,9 +28,5 @@ func TestParamsToEnv(t *testing.T) {
|
||||
}
|
||||
got := map[string]string{}
|
||||
assert.NoError(t, paramsToEnv(from, got))
|
||||
|
||||
if !reflect.DeepEqual(want, got) {
|
||||
t.Errorf("Problem converting plugin parameters to environment variables")
|
||||
pretty.Ldiff(t, want, got)
|
||||
}
|
||||
assert.EqualValues(t, want, got, "Problem converting plugin parameters to environment variables")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user