Skip to content

Commit

Permalink
make listing test less sensitive to meta presence
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Dec 9, 2024
1 parent b8f8a98 commit a080755
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions file_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,12 @@ func TestFileServerWithListing(t *testing.T) {
assert.Equal(t, http.StatusOK, resp.StatusCode)
msg, err := io.ReadAll(resp.Body)
require.NoError(t, err)
exp := `<!doctype html>
<meta name="viewport" content="width=device-width">
<pre>
exp := `<pre>
<a href="f1.html">f1.html</a>
<a href="f2.html">f2.html</a>
</pre>
`
assert.Equal(t, exp, string(msg))
assert.Contains(t, string(msg), exp)
}

{
Expand Down

0 comments on commit a080755

Please sign in to comment.