diff options
Diffstat (limited to 'src/mongo/gotools/mongoreplay/sanity_check.sh')
-rwxr-xr-x | src/mongo/gotools/mongoreplay/sanity_check.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/gotools/mongoreplay/sanity_check.sh b/src/mongo/gotools/mongoreplay/sanity_check.sh index 74a4cf49c6b..c4697b2805e 100755 --- a/src/mongo/gotools/mongoreplay/sanity_check.sh +++ b/src/mongo/gotools/mongoreplay/sanity_check.sh @@ -50,7 +50,8 @@ fi mongo --port=$PORT mongoplay_test --eval "db.setProfilingLevel(2);" mongo --port=$PORT mongoplay_test --eval "db.createCollection('sanity_check', {});" -mongoreplay play --host mongodb://localhost:$PORT -p $OUTFILE +export MONGOREPLAY_HOST="mongodb://localhost:$PORT" +mongoreplay play -p $OUTFILE mongo --port=$PORT mongoplay_test --eval "var profile_results = db.system.profile.find({'ns':'mongoplay_test.sanity_check'}); assert.gt(profile_results.size(), 0);" |