Commit 7dd9852ea5
Verified · cmc
e2e/snippetweb_test.go +1 −1
| @@ -72,7 +72,7 @@ func TestSnippetsWeb(t *testing.T) { | ||
| 72 | 72 | if resp.StatusCode != 200 || !strings.HasPrefix(resp.Header.Get("Content-Type"), "text/plain") || resp.Header.Get("X-Content-Type-Options") != "nosniff" { |
| 73 | 73 | t.Fatalf("raw headers: %d %v", resp.StatusCode, resp.Header) |
| 74 | 74 | } |
| 75 | if status, _ := inst.get(t, "/alice/-/snippets/" + public + "/raw/other.go"); status != 404 { | |
| 75 | if status, _ := inst.get(t, "/alice/-/snippets/"+public+"/raw/other.go"); status != 404 { | |
| 76 | 76 | t.Fatalf("raw for a missing file: %d", status) |
| 77 | 77 | } |
| 78 | 78 | |