diff options
author | Kevin Pulo <kevin.pulo@mongodb.com> | 2016-09-06 14:34:03 +1000 |
---|---|---|
committer | Kevin Pulo <kevin.pulo@mongodb.com> | 2016-09-06 20:45:33 +1000 |
commit | f2c3376d70a3540d3bee5e32abe9d5517f571369 (patch) | |
tree | 478571a607e84f07569f92922e4705be909bc735 /jstests/noPassthrough/shell_history.js | |
parent | 035cf2afc04988b22cb67f4ebfd77e9b344cb6e0 (diff) | |
download | mongo-f2c3376d70a3540d3bee5e32abe9d5517f571369.tar.gz |
SERVER-25335 use open + fdopen on OSX, and cope with slow program output
Diffstat (limited to 'jstests/noPassthrough/shell_history.js')
-rw-r--r-- | jstests/noPassthrough/shell_history.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/jstests/noPassthrough/shell_history.js b/jstests/noPassthrough/shell_history.js index 72300a7d8a0..df924983efc 100644 --- a/jstests/noPassthrough/shell_history.js +++ b/jstests/noPassthrough/shell_history.js @@ -94,7 +94,14 @@ clearRawMongoProgramOutput(); var rc = runProgram("ls", "-l", file.name); assert.eq(rc, 0); - var output = rawMongoProgramOutput(); + // Before SERVER-22992 is fixed: + var output = null; + assert.soon(function() { + output = rawMongoProgramOutput(); + return output != ""; + }); + // After SERVER-22992 is fixed: + // var output = rawMongoProgramOutput(); var fields = output.split(" "); // First field is the prefix, second field is the `ls -l` permissions. assert.eq(fields[1], "-rw-------", targetFile + " has bad permissions"); |