1
0
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:
6543
2021-12-04 13:23:33 +01:00
committed by GitHub
parent d3eabbdebc
commit fc6a2a9975
39 changed files with 24 additions and 9532 deletions

View File

@@ -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")
}