From 0f9ec097960200dedffedc9d25804bd8ed60e950 Mon Sep 17 00:00:00 2001 From: iwilltry42 Date: Wed, 15 Apr 2020 11:57:53 +0200 Subject: [PATCH] adapt tests to new --timeout flag --- tests/test_basic.sh | 4 ++-- tests/test_multi_master.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_basic.sh b/tests/test_basic.sh index 952cea65..f4311e9d 100755 --- a/tests/test_basic.sh +++ b/tests/test_basic.sh @@ -7,8 +7,8 @@ CURR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" source "$CURR_DIR/common.sh" info "Creating two clusters..." -$EXE --verbose create cluster c1 --wait 60 --api-port 6443 || failed "could not create cluster c1" -$EXE --verbose create cluster c2 --wait 60 --api-port 6444 || failed "could not create cluster c2" +$EXE --verbose create cluster c1 --wait --timeout 60 --api-port 6443 || failed "could not create cluster c1" +$EXE --verbose create cluster c2 --wait --timeout 60 --api-port 6444 || failed "could not create cluster c2" info "Checking we have access to both clusters..." check_k3d_clusters "c1" "c2" || failed "error checking cluster" diff --git a/tests/test_multi_master.sh b/tests/test_multi_master.sh index ec064cbc..2fe4f0d2 100755 --- a/tests/test_multi_master.sh +++ b/tests/test_multi_master.sh @@ -7,7 +7,7 @@ CURR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" source "$CURR_DIR/common.sh" info "Creating cluster multimaster..." -$EXE create cluster "multimaster" --masters 3 --api-port 6443 --wait 360 || failed "could not create cluster multimaster" +$EXE create cluster "multimaster" --masters 3 --api-port 6443 --wait --timeout 360 || failed "could not create cluster multimaster" info "Checking we have access to the cluster..." check_k3d_clusters "multimaster" || failed "error checking cluster"