Codebase list golang-github-imdario-mergo / 23d4eb2 debian / patches / 0002-fix-test-fixture-locations.patch
23d4eb2

Tree @23d4eb2 (Download .tar.gz)

0002-fix-test-fixture-locations.patch @23d4eb2raw · history · blame

Index: golang-github-imdario-mergo/mergo_test.go
===================================================================
--- golang-github-imdario-mergo.orig/mergo_test.go
+++ golang-github-imdario-mergo/mergo_test.go
@@ -314,8 +314,8 @@ func TestMaps(t *testing.T) {
 }
 
 func TestYAMLMaps(t *testing.T) {
-	thing := loadYAML("testdata/thing.yml")
-	license := loadYAML("testdata/license.yml")
+	thing := loadYAML("../../../../../testdata/thing.yml")
+	license := loadYAML("../../../../../testdata/license.yml")
 	ft := thing["fields"].(map[interface{}]interface{})
 	fl := license["fields"].(map[interface{}]interface{})
 	expectedLength := len(ft) + len(fl)