Commit d9dbbb57 authored by Thomas Goirand's avatar Thomas Goirand

Don't use wait_for_line, just wait 10 seconds.

parent 670f0b4d
ceilometer (1:11.0.0-2) UNRELEASED; urgency=medium
* Don't use wait_for_line, just wait 10 seconds.
-- Thomas Goirand <> Fri, 24 Aug 2018 23:27:17 +0200
ceilometer (1:11.0.0-1) experimental; urgency=medium
[ Thomas Goirand ]
......@@ -18,7 +18,8 @@ trap "clean_exit ${MONGO_DATA}" EXIT
mkfifo ${MONGO_DATA}/out
mongod --maxConns 32 --nojournal --noprealloc --smallfiles --quiet --noauth --port ${MONGO_PORT} --dbpath "${MONGO_DATA}" --bind_ip localhost --config /dev/null &>${MONGO_DATA}/out &
# Wait for Mongo to start listening to connections
wait_for_line "waiting for connections on port ${MONGO_PORT}" ${MONGO_DATA}/out
#wait_for_line "waiting for connections on port ${MONGO_PORT}" ${MONGO_DATA}/out
sleep 10
# Read the fifo for ever otherwise mongod would block
cat ${MONGO_DATA}/out > /dev/null &
export CEILOMETER_TEST_STORAGE_URL="mongodb://localhost:${MONGO_PORT}/ceilometer"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment