Skip to content

Commit a26ae19

Browse files
committed
Drop empty file from tests
1 parent b190fb7 commit a26ae19

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cmd/download_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,6 @@ func fakeDownloadServer(requestor string) *httptest.Server {
309309
fmt.Fprint(w, "this is file 2")
310310
})
311311

312-
mux.HandleFunc("/file-3.txt", func(w http.ResponseWriter, r *http.Request) {
313-
fmt.Fprint(w, "")
314-
})
315-
316312
mux.HandleFunc("/solutions/latest", func(w http.ResponseWriter, r *http.Request) {
317313
payloadBody := fmt.Sprintf(payloadTemplate, requestor, server.URL+"/")
318314
fmt.Fprint(w, payloadBody)
@@ -350,9 +346,6 @@ func assertDownloadedCorrectFiles(t *testing.T, targetDir string) {
350346
assert.Equal(t, file.contents, string(b))
351347
})
352348
}
353-
354-
path := filepath.Join(targetDir, "bogus-track", "bogus-exercise", "file-3.txt")
355-
_, err := os.Lstat(path)
356349
}
357350

358351
func TestDownloadError(t *testing.T) {
@@ -410,7 +403,6 @@ const payloadTemplate = `
410403
"files": [
411404
"file-1.txt",
412405
"subdir/file-2.txt",
413-
"file-3.txt"
414406
],
415407
"iteration": {
416408
"submitted_at": "2017-08-21t10:11:12.130z"

0 commit comments

Comments
 (0)