@@ -32,8 +32,8 @@ func TestStaticFetch(t *testing.T) {
3232 }{
3333 {
3434 name : "example.zip" ,
35- serveFile : "testdata/example.zip" ,
36- requestPath : "testdata/example.zip" ,
35+ serveFile : "testdata/gtfs-examples/ example.zip" ,
36+ requestPath : "testdata/gtfs-examples/ example.zip" ,
3737 responseSha1 : "ce0a38dd6d4cfdac6aebe003181b6b915390a3b8" ,
3838 responseCode : 200 ,
3939 responseError : false ,
@@ -42,7 +42,7 @@ func TestStaticFetch(t *testing.T) {
4242 },
4343 {
4444 name : "404" ,
45- serveFile : "testdata/example.zip" ,
45+ serveFile : "testdata/gtfs-examples/ example.zip" ,
4646 requestPath : "404.zip" ,
4747 responseSha1 : "" ,
4848 responseCode : 404 ,
@@ -52,8 +52,8 @@ func TestStaticFetch(t *testing.T) {
5252 },
5353 {
5454 name : "invalid zip" ,
55- serveFile : "testdata/invalid.zip" ,
56- requestPath : "testdata/invalid.zip" ,
55+ serveFile : "testdata/gtfs-examples/ invalid.zip" ,
56+ requestPath : "testdata/gtfs-examples/ invalid.zip" ,
5757 responseSha1 : "" ,
5858 responseCode : 200 ,
5959 responseError : true ,
@@ -62,8 +62,8 @@ func TestStaticFetch(t *testing.T) {
6262 },
6363 {
6464 name : "nested dir" ,
65- serveFile : "testdata/example-nested-dir.zip" ,
66- requestPath : "testdata/example-nested-dir.zip#example-nested-dir/example" ,
65+ serveFile : "testdata/gtfs-examples/ example-nested-dir.zip" ,
66+ requestPath : "testdata/gtfs-examples/ example-nested-dir.zip#example-nested-dir/example" ,
6767 responseSha1 : "" ,
6868 responseCode : 200 ,
6969 responseError : false ,
@@ -72,8 +72,8 @@ func TestStaticFetch(t *testing.T) {
7272 },
7373 {
7474 name : "nested two feeds 1" ,
75- serveFile : "testdata/example-nested-two-feeds.zip" ,
76- requestPath : "testdata/example-nested-two-feeds.zip#example1" ,
75+ serveFile : "testdata/gtfs-examples/ example-nested-two-feeds.zip" ,
76+ requestPath : "testdata/gtfs-examples/ example-nested-two-feeds.zip#example1" ,
7777 responseSha1 : "" ,
7878 responseCode : 200 ,
7979 responseError : false ,
@@ -82,8 +82,8 @@ func TestStaticFetch(t *testing.T) {
8282 },
8383 {
8484 name : "nested two feeds 2" ,
85- serveFile : "testdata/example-nested-two-feeds.zip" ,
86- requestPath : "testdata/example-nested-two-feeds.zip#example2" ,
85+ serveFile : "testdata/gtfs-examples/ example-nested-two-feeds.zip" ,
86+ requestPath : "testdata/gtfs-examples/ example-nested-two-feeds.zip#example2" ,
8787 responseSha1 : "" ,
8888 responseCode : 200 ,
8989 responseError : false ,
@@ -92,8 +92,8 @@ func TestStaticFetch(t *testing.T) {
9292 },
9393 {
9494 name : "nested zip" ,
95- serveFile : "testdata/example-nested-zip.zip" ,
96- requestPath : "testdata/example-nested-zip.zip#example-nested-zip/example.zip" ,
95+ serveFile : "testdata/gtfs-examples/ example-nested-zip.zip" ,
96+ requestPath : "testdata/gtfs-examples/ example-nested-zip.zip#example-nested-zip/example.zip" ,
9797 responseSha1 : "" ,
9898 responseCode : 200 ,
9999 responseError : false ,
@@ -285,7 +285,7 @@ func TestStaticFetch_AdditionalTests(t *testing.T) {
285285// So in this case, the second fetch will return Found and the existing FV.
286286func TestStaticFetch_NestedTwoFeeds (t * testing.T ) {
287287 ts := httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
288- fp := testpath .RelPath ("testdata/example-nested-two-feeds.zip" )
288+ fp := testpath .RelPath ("testdata/gtfs-examples/ example-nested-two-feeds.zip" )
289289 buf , err := os .ReadFile (fp )
290290 if err != nil {
291291 t .Error (err )
0 commit comments