Skip to content

Commit

Permalink
Repair a failing upload test
Browse files Browse the repository at this point in the history
  • Loading branch information
anbsky committed Aug 22, 2024
1 parent bd25be6 commit 16fc5c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/publish/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func Test_fetchFileWithRetries(t *testing.T) {
t.Parallel()

ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(600)
w.WriteHeader(500)
}))
defer ts.Close()

Expand All @@ -371,7 +371,7 @@ func Test_fetchFileWithRetries(t *testing.T) {

assert.NotNil(t, err)
assert.Nil(t, f)
assert.Contains(t, err.Error(), "remote server returned non-OK status 600")
assert.Contains(t, err.Error(), "unexpected HTTP status code 500")
})

t.Run("FailedWithClosedConnection", func(t *testing.T) {
Expand Down

0 comments on commit 16fc5c5

Please sign in to comment.