victoriametrics: increase timeouts in tests to avoid failure

This fixes:

    storage_test.go:912: timeout
--- FAIL: TestStorageAddRowsConcurrent (11.18s)
=== RUN   TestStorageRotateIndexDB
This commit is contained in:
Ivan Kozik 2022-05-21 21:08:13 +00:00
parent 430d4ff4b8
commit c4b7b179eb

View File

@ -19,6 +19,11 @@ buildGoModule rec {
#
# This appears to be some kind of test server for development purposes only.
rm -f app/vmui/packages/vmui/web/{go.mod,main.go}
# Increase timeouts in tests to prevent failure on heavily loaded builders
substituteInPlace lib/storage/storage_test.go \
--replace "time.After(10 " "time.After(120 " \
--replace "time.After(30 " "time.After(120 "
'';
ldflags = [ "-s" "-w" "-X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=${version}" ];