Increase test timeout

This commit is contained in:
kolaente 2021-08-02 13:13:24 +02:00
parent 647f3cb9f1
commit d34c85d544
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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