Skip to content

Commit

Permalink
Fix TestListWithUnexpectedFiles test
Browse files Browse the repository at this point in the history
The test should test both API versions.
  • Loading branch information
MichaelEischer committed Jun 17, 2023
1 parent 84a8b21 commit 9557efa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,9 @@ func TestListWithUnexpectedFiles(t *testing.T) {

for i := 1; i <= 2; i++ {
req := newRequest(t, "GET", "/data/", nil)
req.Header.Set("Accept", "application/vnd.x.restic.rest.v2")
if i == 2 {
req.Header.Set("Accept", "application/vnd.x.restic.rest.v2")
}

checkRequest(t, mux.ServeHTTP, req,
[]wantFunc{wantCode(http.StatusOK)})
Expand Down

0 comments on commit 9557efa

Please sign in to comment.