1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Last-Update: 2016-03-12
Forwarded: not-needed
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: fix path to test data.
--- a/storage_test.go
+++ b/storage_test.go
@@ -28,9 +28,9 @@
var testdata []string
func init() {
- tests, err := ioutil.ReadFile("testdata.ql")
+ tests, err := ioutil.ReadFile("../../../../../testdata.ql")
if err != nil {
log.Panic(err)
}
--- a/all_test.go
+++ b/all_test.go
@@ -2162,9 +2162,9 @@
defer stmt.Close()
scanFnames := []string{"1.xyz", "2.xyz", "3.xyz"}
for _, fname := range scanFnames {
- scanData, err := ioutil.ReadFile(filepath.Join("_testdata", fname))
+ scanData, err := ioutil.ReadFile(filepath.Join("../../../../../_testdata", fname))
if err != nil {
t.Fatalf("ioutil.ReadFile(%s) Error - %v", fname, err)
}
|