mirror of
https://github.com/siderolabs/omni.git
synced 2026-05-05 06:36:12 +02:00
test: bump Talemu tests timeout
The internal timeout for the provision test is 6 minutes. With 4 minutes timeout for the whole test run we miss the actual error report. Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
This commit is contained in:
parent
c9f99476ca
commit
029ec05600
@ -33,6 +33,8 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"golang.org/x/sync/errgroup"
|
||||
"google.golang.org/grpc/backoff"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
"google.golang.org/protobuf/types/known/emptypb"
|
||||
|
||||
"github.com/siderolabs/omni/client/api/omni/management"
|
||||
@ -84,6 +86,14 @@ func clearConnectionRefused(ctx context.Context, t *testing.T, c *talosclient.Cl
|
||||
return retry.ExpectedError(err)
|
||||
}
|
||||
|
||||
// nolint:exhaustive
|
||||
switch status.Code(err) {
|
||||
case codes.DeadlineExceeded,
|
||||
codes.Unavailable,
|
||||
codes.Canceled:
|
||||
return retry.ExpectedError(err)
|
||||
}
|
||||
|
||||
t.Logf("clear connection refused failed, error: %s", err)
|
||||
|
||||
return err
|
||||
|
||||
@ -159,7 +159,7 @@ if [[ "${RUN_TALEMU_TESTS:-false}" == "true" ]]; then
|
||||
--expected-machines=30 \
|
||||
--provision-config-file=hack/test/provisionconfig.yaml \
|
||||
--run-stats-check \
|
||||
-t 4m \
|
||||
-t 10m \
|
||||
-p 10 \
|
||||
${TALEMU_TEST_ARGS:-}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user