diff options
Diffstat (limited to 'jstests/noPassthrough/bind_localhost.js')
-rw-r--r-- | jstests/noPassthrough/bind_localhost.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/bind_localhost.js b/jstests/noPassthrough/bind_localhost.js index 242b559831d..df4e7155dac 100644 --- a/jstests/noPassthrough/bind_localhost.js +++ b/jstests/noPassthrough/bind_localhost.js @@ -7,7 +7,7 @@ const mongo = MongoRunner.runMongod({ipv6: '', bind_ip: 'localhost', useLogFiles assert.neq(mongo, null, "Database is not running"); const log = cat(mongo.fullOptions.logFile); print(log); -assert(log.includes('Listening on 127.0.0.1'), "Not listening on AF_INET"); +assert(log.match(/Listening on.*127.0.0.1/), "Not listening on AF_INET"); if (!_isWindows()) { assert(log.match(/Listening on .*\.sock/), "Not listening on AF_UNIX"); } |