diff --git a/pkg/gopass/secrets/yaml_test.go b/pkg/gopass/secrets/yaml_test.go index fbfc00aaa8..8d7cb615fb 100644 --- a/pkg/gopass/secrets/yaml_test.go +++ b/pkg/gopass/secrets/yaml_test.go @@ -83,7 +83,7 @@ func TestYAMLKeyToEmptySecret(t *testing.T) { // read back key v, ok := s.Get(yamlKey) assert.True(t, ok) - assert.Equal(t, yamlValue, v) + assert.YAMLEq(t, yamlValue, v) // read back whole entry want := "\n---\n" + yamlKey + ": " + yamlValue + "\n" @@ -155,17 +155,17 @@ func TestYAMLSetMultipleKeys(t *testing.T) { } // read back the password - assert.Equal(t, yamlPassword, s.Password()) + assert.YAMLEq(t, yamlPassword, s.Password()) // read back the keys for _, key := range keys { v, ok := s.Get(key) assert.True(t, ok) - assert.Equal(t, yamlValue, v) + assert.YAMLEq(t, yamlValue, v) } // read back whole entry - assert.Equal(t, b.String(), string(s.Bytes())) + assert.YAMLEq(t, b.String(), string(s.Bytes())) } func TestYAMLMultilineWithDashes(t *testing.T) { diff --git a/tests/insert_test.go b/tests/insert_test.go index 78124e16da..4e8708c8a5 100644 --- a/tests/insert_test.go +++ b/tests/insert_test.go @@ -130,7 +130,7 @@ glossary": { // using show -n to disable parsing out, err = ts.run("show -f -n some/json") require.NoError(t, err) - assert.Equal(t, json, out) + assert.Equal(t, json, out) //nolint:testifylint }) t.Run("Regression test for #1600", func(t *testing.T) {