From b3f41ffa84f43572b0a8652f8017f9d53996f042 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 11 Jul 2024 10:57:44 +0200 Subject: 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. --- dashboard/app/app_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'dashboard/app/app_test.go') 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 } -- cgit mrf-deployment