victoriametrics: increase timeouts in tests to avoid failure

This fixes:

    storage_test.go:912: timeout
--- FAIL: TestStorageAddRowsConcurrent (11.18s)
=== RUN   TestStorageRotateIndexDB
main
Ivan Kozik 2 years ago
parent 430d4ff4b8
commit c4b7b179eb
  1. 5
      pkgs/servers/nosql/victoriametrics/default.nix

@ -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}" ];

Loading…
Cancel
Save