diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-07-11 10:57:44 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-07-11 11:55:15 +0000 |
| commit | b3f41ffa84f43572b0a8652f8017f9d53996f042 (patch) | |
| tree | 9f28afedb03c688117eac541b6a56ad76443a96a /dashboard/app/app_test.go | |
| parent | baf24fbe840b2b9fd49636f49fd6fa42f39290b9 (diff) | |
dashboard: fix TestAccess
The test has recently become broken, but we didn't notice it in our
presubmit testing.
Fix the problem (ReproLog being set to 0).
Run TestAccess also in -short mode, but limit it to ensuring that
non-public URLs are not accessible publicly. The short test now takes 60
seconds compared to 104 seconds without -short.
Diffstat (limited to 'dashboard/app/app_test.go')
| -rw-r--r-- | dashboard/app/app_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dashboard/app/app_test.go b/dashboard/app/app_test.go index 99da350aa..8a82d78d0 100644 --- a/dashboard/app/app_test.go +++ b/dashboard/app/app_test.go @@ -693,6 +693,7 @@ func testCrashWithRepro(build *dashapi.Build, id int) *dashapi.Crash { crash.ReproOpts = []byte(fmt.Sprintf("repro opts %v", id)) crash.ReproSyz = []byte(fmt.Sprintf("syncfs(%v)", id)) crash.ReproC = []byte(fmt.Sprintf("int main() { return %v; }", id)) + crash.ReproLog = []byte(fmt.Sprintf("repro log %d", id)) return crash } |
