Description: Modify test fixture paths
The Debian packging process executes Go tests in a subdirectory
which is not handled correctly. The path to each test fixture
file has been updated to reflect this.
Author: Tim Potter <tpot@hpe.com>
Forwarded: no
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
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)