mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Merge pull request #21201 from erictune/mac-unit-test
Auto commit by PR queue bot
This commit is contained in:
commit
818aaaa5c1
@ -303,6 +303,17 @@ reportCoverageToCoveralls() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkFDs() {
|
||||||
|
# several unittests panic when httptest cannot open more sockets
|
||||||
|
# due to the low default files limit on OS X. Warn about low limit.
|
||||||
|
local fileslimit="$(ulimit -n)"
|
||||||
|
if [[ $fileslimit -lt 1000 ]]; then
|
||||||
|
echo "WARNING: ulimit -n (files) should be at least 1000, is $fileslimit, may cause test failure";
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
checkFDs
|
||||||
|
|
||||||
# Convert the CSVs to arrays.
|
# Convert the CSVs to arrays.
|
||||||
IFS=';' read -a apiVersions <<< "${KUBE_TEST_API_VERSIONS}"
|
IFS=';' read -a apiVersions <<< "${KUBE_TEST_API_VERSIONS}"
|
||||||
IFS=',' read -a etcdPrefixes <<< "${KUBE_TEST_ETCD_PREFIXES}"
|
IFS=',' read -a etcdPrefixes <<< "${KUBE_TEST_ETCD_PREFIXES}"
|
||||||
|
Loading…
Reference in New Issue
Block a user