aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-12-15 15:46:11 +0100
committerDimitri Sokolyuk <demon@dim13.org>2018-12-15 15:46:11 +0100
commit2209489d7b6240e5f6f883d4e62aefc0fb7525fa (patch)
treed6038918b8b7bd13699bd9cd1f8224b442a572c7
parentcafaad55219f5398ec9e992960dd4144e7fce93f (diff)
move testdata to package
-rw-r--r--tracker/messages_test.go4
-rw-r--r--tracker/testdata/tr_resp.compact (renamed from testdata/tr_resp.compact)bin179 -> 179 bytes
-rw-r--r--tracker/testdata/tr_resp.verbose (renamed from testdata/tr_resp.verbose)0
3 files changed, 2 insertions, 2 deletions
diff --git a/tracker/messages_test.go b/tracker/messages_test.go
index 7093939..d95c89a 100644
--- a/tracker/messages_test.go
+++ b/tracker/messages_test.go
@@ -8,7 +8,7 @@ import (
)
func TestParseResponseCompact(t *testing.T) {
- body, err := ioutil.ReadFile("../testdata/tr_resp.compact")
+ body, err := ioutil.ReadFile("testdata/tr_resp.compact")
if err != nil {
t.Error(err)
}
@@ -21,7 +21,7 @@ func TestParseResponseCompact(t *testing.T) {
}
func TestParseResponseVerbose(t *testing.T) {
- body, err := ioutil.ReadFile("../testdata/tr_resp.verbose")
+ body, err := ioutil.ReadFile("testdata/tr_resp.verbose")
if err != nil {
t.Error(err)
}
diff --git a/testdata/tr_resp.compact b/tracker/testdata/tr_resp.compact
index 7093321..7093321 100644
--- a/testdata/tr_resp.compact
+++ b/tracker/testdata/tr_resp.compact
Binary files differ
diff --git a/testdata/tr_resp.verbose b/tracker/testdata/tr_resp.verbose
index b620bf9..b620bf9 100644
--- a/testdata/tr_resp.verbose
+++ b/tracker/testdata/tr_resp.verbose