fix(tests): fix go binary tests

This commit is contained in:
Łukasz Mierzwa
2020-08-12 17:06:29 +01:00
committed by Łukasz Mierzwa
parent 9c5ffb6134
commit 87abaef69f
2 changed files with 10 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ GOCACHE=$(go env GOCACHE)
SIZE=`du -sxm ${GOCACHE} | awk '{print $1}'`
echo "GOCACHE size: ${SIZE}MB"
if [ "${DRY_RUN}" == "" ] && [ "${TRAVIS_BRANCH}" == "master" ] && [ $SIZE -gt 4000 ]; then
if [ "${DRY_RUN}" == "" ] && [ "${TRAVIS_BRANCH}" == "master" ] && [ $SIZE -gt 4200 ]; then
echo "Pruning GOCACHE at ${GOCACHE}"
find "${GOCACHE}" -type f -delete
fi

View File

@@ -28,8 +28,15 @@ LOG_CONFIG=false \
./karma.test \
-test.run '^TestRunMain$' \
-test.coverprofile=profile.main.1 &
PID=$!
sleep 5
killall karma.test
sleep 10
kill $PID
sleep 1
while kill -0 "$PID"; do
echo "Waiting for $PID to finish"
sleep 1
done
rm karma.test