Skip to content

Commit d4df887

Browse files
committed
call kube:test:clear_all during cleanup
1 parent a502b96 commit d4df887

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/cmd/legacy-script.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ runTests() {
386386
kubectl get "${kube_flags[@]}" -f hack/testdata/kubernetes-service.yaml
387387
fi
388388

389-
cleanup(){
390-
kube::test::clear_all
389+
cleanup_tests(){
390+
kube::test::clear_all
391391
if [[ -n "${foundError}" ]]; then
392392
echo "FAILED TESTS: ""${foundError}"
393393
exit 1
@@ -399,7 +399,7 @@ runTests() {
399399
do
400400
record_command run_${pkg}_tests
401401
done
402-
cleanup
402+
cleanup_tests
403403
return
404404
fi
405405

@@ -866,5 +866,5 @@ runTests() {
866866

867867
record_command run_wait_tests
868868

869-
cleanup
869+
cleanup_tests
870870
}

0 commit comments

Comments
 (0)