Codebase list golang-github-imdario-mergo / debian/0.2.2-1_bpo8+1 debian / patches / 0002-fix-test-fixture-locations.patch
debian/0.2.2-1_bpo8+1

Tree @debian/0.2.2-1_bpo8+1 (Download .tar.gz)

0002-fix-test-fixture-locations.patch @debian/0.2.2-1_bpo8+1raw · history · blame

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)