From 26e2d0bddeaea902dba055baf7a4c866a44ba7f1 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 2 Aug 2022 22:49:48 +0200 Subject: [PATCH] fix: increase test timeout --- magefile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magefile.go b/magefile.go index b5a0e17f..92668a88 100644 --- a/magefile.go +++ b/magefile.go @@ -350,7 +350,7 @@ func (Test) Unit() { mg.Deps(initVars) setApiPackages() // We run everything sequentially and not in parallel to prevent issues with real test databases - args := append([]string{"test", Goflags[0], "-p", "1", "-coverprofile", "cover.out", "-timeout", "20m"}, ApiPackages...) + args := append([]string{"test", Goflags[0], "-p", "1", "-coverprofile", "cover.out", "-timeout", "45m"}, ApiPackages...) runAndStreamOutput("go", args...) } @@ -365,7 +365,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", "20m", PACKAGE+"/pkg/integrations") + runAndStreamOutput("go", "test", Goflags[0], "-p", "1", "-timeout", "45m", PACKAGE+"/pkg/integrations") } type Check mg.Namespace