aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/html/html.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2022-12-09 11:49:44 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2022-12-09 13:55:42 +0100
commit67be1ae742603edad9c97d30b6ed69f9bbe2ffa8 (patch)
treea1c42a22e9a0ff8f63dfd39fd4502cfc867ec316 /pkg/html/html.go
parenta098c49a0e460e4ec2f2d3f601e499b2bd455d2f (diff)
dashboard: speed up the TestPurgeOldCrashes test()`
This test is skipped during short testing, but during the full testing it takes most of the time. At the same time, for testing purposes it's actually irrelevant whether we keep 40 or 20 crashes, so we're just wasting time. Make maxCrashes() mockable and set it to 20 during testing. This makes full testing 1.5x faster and also gives a small speed improvement for -short testing.
Diffstat (limited to 'pkg/html/html.go')
0 files changed, 0 insertions, 0 deletions