Skip to content

Commit

Permalink
increase test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterp committed Feb 22, 2024
1 parent f7d39ed commit 655758e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion internal/integ/integ_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package integ

import (
"flag"
"fmt"
"log/slog"
"os"
Expand All @@ -17,9 +18,17 @@ import (
)

func TestMain(m *testing.M) {
// cluster creation takes a while so we increase the test timeout
// This call has to happen before testing.M.Run as that's where
// the flag `test.timeout` is used.
err := flag.Set("test.timeout", "30m")
if err != nil {
slog.Warn("failed to set test timeout", "error", err)
}

exitCode := 0

err := cluster.Setup()
err = cluster.Setup()
if err != nil {
slog.Error("error during setup", "err", err)
exitCode = 1
Expand Down

0 comments on commit 655758e

Please sign in to comment.