Commit ccf54427de
Verified · cmc ci/build: success ci/test: failure
Layout: unified · split
internal/httpd/account_test.go +2 −2
| @@ -300,7 +300,7 @@ func newTokenTestServer(t *testing.T) (*Server, *store.Store, store.User) { | |||
| 300 | if err != nil { | 300 | if err != nil { |
| 301 | t.Fatal(err) | 301 | t.Fatal(err) |
| 302 | } | 302 | } |
| 303 | return New(config.Default(), st), st, store.User{ID: uid, Username: "alice"} | 303 | return New(config.Default(), st, nil), st, store.User{ID: uid, Username: "alice"} |
| 304 | } | 304 | } |
| 305 | 305 | ||
| 306 | // The settings page lists a user's API tokens with scope and expiry, | 306 | // The settings page lists a user's API tokens with scope and expiry, |
| @@ -425,7 +425,7 @@ func TestAccountTokenCreateCrossSiteRefused(t *testing.T) { | |||
| 425 | _, st, u := newTokenTestServer(t) | 425 | _, st, u := newTokenTestServer(t) |
| 426 | cfg := config.Default() | 426 | cfg := config.Default() |
| 427 | cfg.Web.Mode = "accounts" | 427 | cfg.Web.Mode = "accounts" |
| 428 | s := New(cfg, st) | 428 | s := New(cfg, st, nil) |
| 429 | form := url.Values{"field": {"token-create"}, "name": {"evil"}, "scope": {"full"}} | 429 | form := url.Values{"field": {"token-create"}, "name": {"evil"}, "scope": {"full"}} |
| 430 | for _, r := range s.Routes() { | 430 | for _, r := range s.Routes() { |
| 431 | if r.Method != "POST" || r.Pattern != "/settings" { | 431 | if r.Method != "POST" || r.Pattern != "/settings" { |
internal/httpd/issuecreate_test.go +2 −2
| @@ -306,7 +306,7 @@ func TestIssueCreateFormPreviewKeepsMilestoneAndAssignee(t *testing.T) { | |||
| 306 | 306 | ||
| 307 | cfg := config.Default() | 307 | cfg := config.Default() |
| 308 | cfg.Web.Mode = "accounts" | 308 | cfg.Web.Mode = "accounts" |
| 309 | s := New(cfg, st) | 309 | s := New(cfg, st, nil) |
| 310 | form := url.Values{ | 310 | form := url.Values{ |
| 311 | "title": {"a bug"}, | 311 | "title": {"a bug"}, |
| 312 | "body": {"**steps**"}, | 312 | "body": {"**steps**"}, |
| @@ -356,7 +356,7 @@ func TestIssueCreateSubmitRefusedKeepsDraft(t *testing.T) { | |||
| 356 | t.Fatal(err) | 356 | t.Fatal(err) |
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | s := New(config.Default(), st) | 359 | s := New(config.Default(), st, nil) |
| 360 | form := url.Values{ | 360 | form := url.Values{ |
| 361 | "title": {"needs a fix"}, | 361 | "title": {"needs a fix"}, |
| 362 | "body": {"details"}, | 362 | "body": {"details"}, |