aboutsummaryrefslogtreecommitdiff
path: root/api/departures_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/departures_test.go')
-rw-r--r--api/departures_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/departures_test.go b/api/departures_test.go
index b0a5dc5..ad9d913 100644
--- a/api/departures_test.go
+++ b/api/departures_test.go
@@ -20,7 +20,7 @@ func TestGetDepartures(t *testing.T) {
t.Fatalf("unreachable server should raise an error")
}
// invalid json
- client, ts := NewTestClientFromFilename(t, "invalid.json")
+ client, ts := NewTestClientFromFilename(t, "test_data/invalid.json")
defer ts.Close()
_, err = client.GetDepartures()
if err == nil {
@@ -36,7 +36,7 @@ func TestGetDepartures(t *testing.T) {
t.Fatalf("404 should raise an error")
}
// normal working request
- client, ts = NewTestClientFromFilename(t, "normal-crepieux.json")
+ client, ts = NewTestClientFromFilename(t, "test_data/normal-crepieux.json")
defer ts.Close()
departures, err := client.GetDepartures()
if err != nil {