From d34c85d544a0a0b55b69c503afc6615222a6de03 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 2 Aug 2021 13:13:24 +0200 Subject: [PATCH] Increase test timeout --- magefile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magefile.go b/magefile.go index 329d32df..f95c5037 100644 --- a/magefile.go +++ b/magefile.go @@ -341,7 +341,7 @@ type Test mg.Namespace func (Test) Unit() { mg.Deps(initVars) // We run everything sequentially and not in parallel to prevent issues with real test databases - args := append([]string{"test", Goflags[0], "-p", "1", "-timeout", "20s"}, ApiPackages...) + args := append([]string{"test", Goflags[0], "-p", "1", "-timeout", "20m"}, ApiPackages...) runAndStreamOutput("go", args...) } @@ -356,7 +356,7 @@ func (Test) Coverage() { func (Test) Integration() { mg.Deps(initVars) // We run everything sequentially and not in parallel to prevent issues with real test databases - runAndStreamOutput("go", "test", Goflags[0], "-p", "1", "-timeout", "20s", PACKAGE+"/pkg/integrations") + runAndStreamOutput("go", "test", Goflags[0], "-p", "1", "-timeout", "20m", PACKAGE+"/pkg/integrations") } type Check mg.Namespace