From f3c2be6d27198f92f37f4ef401d00b1e7aa15a40 Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Mon, 13 Jan 2025 12:38:31 +0100 Subject: [PATCH] buf: increase test timeout --- pkgs/by-name/bu/buf/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/bu/buf/package.nix b/pkgs/by-name/bu/buf/package.nix index 6912f03d0527..b5a279089cd5 100644 --- a/pkgs/by-name/bu/buf/package.nix +++ b/pkgs/by-name/bu/buf/package.nix @@ -40,6 +40,10 @@ buildGoModule rec { ]; preCheck = '' + # Some tests take longer depending on builder load. + substituteInPlace private/bufpkg/bufcheck/lint_test.go \ + --replace-fail 'context.WithTimeout(context.Background(), 60*time.Second)' \ + 'context.WithTimeout(context.Background(), 600*time.Second)' # For WebAssembly runtime tests GOOS=wasip1 GOARCH=wasm go build -o $GOPATH/bin/buf-plugin-suffix.wasm \ ./private/bufpkg/bufcheck/internal/cmd/buf-plugin-suffix