Skip to content

Commit 13b9c1a

Browse files
committed
Switch to four parallel tests
1 parent 29db4de commit 13b9c1a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

test/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ if [ "$TEST_SUITE" == "workspace" ]; then
114114

115115
set +e
116116
# shellcheck disable=SC2086
117-
go test -p 6 -v $TEST_LIST "${args[@]}" -parallel-features=true -skip-labels="type=maintenance" 2>&1 | go-junit-report -subtest-mode=exclude-parents -set-exit-code -out "${RESULTS_DIR}/TEST-${TEST_NAME}.xml" -iocopy
117+
go test -p 4 -v $TEST_LIST "${args[@]}" -parallel-features=true -skip-labels="type=maintenance" 2>&1 | go-junit-report -subtest-mode=exclude-parents -set-exit-code -out "${RESULTS_DIR}/TEST-${TEST_NAME}.xml" -iocopy
118118
RC=${PIPESTATUS[0]}
119119
set -e
120120

test/tests/components/ws-manager/maintenence_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ func TestMaintenance(t *testing.T) {
9696
t.Fatal(err)
9797
}
9898

99+
defer func() {
100+
err := configureMaintenanceMode(testCtx, nil, kubeClient)
101+
if err != nil {
102+
t.Error(err)
103+
}
104+
}()
105+
99106
untilTime := time.Now().Add(1 * time.Hour)
100107
err = configureMaintenanceMode(testCtx, &untilTime, kubeClient)
101108
if err != nil {
@@ -136,6 +143,8 @@ func TestMaintenance(t *testing.T) {
136143
t.Fatal(err)
137144
}
138145

146+
time.Sleep(1 * time.Second)
147+
139148
_, stopWs, err := integration.LaunchWorkspaceDirectly(t, ctx, api, integration.WithRequestModifier(func(swr *wsmanapi.StartWorkspaceRequest) error {
140149
swr.Spec.Initializer = &csapi.WorkspaceInitializer{
141150
Spec: &csapi.WorkspaceInitializer_Git{

0 commit comments

Comments
 (0)