From c4b7b179eb7fb7f971bedef6ba705ee15c4d98a7 Mon Sep 17 00:00:00 2001 From: Ivan Kozik Date: Sat, 21 May 2022 21:08:13 +0000 Subject: [PATCH] victoriametrics: increase timeouts in tests to avoid failure This fixes: storage_test.go:912: timeout --- FAIL: TestStorageAddRowsConcurrent (11.18s) === RUN TestStorageRotateIndexDB --- pkgs/servers/nosql/victoriametrics/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/servers/nosql/victoriametrics/default.nix b/pkgs/servers/nosql/victoriametrics/default.nix index 8607bca6e1a..0fe4dc28d27 100644 --- a/pkgs/servers/nosql/victoriametrics/default.nix +++ b/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}" ];