Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SERVER-5920 buildbot bad_config_load.js also check for socket excepti…

…ons in test

Signed-off-by: Eric Milkie <milkie@10gen.com>
  • Loading branch information...
commit b0e8e2bfa99cd6c7c197936d0b9859295c8ab1d4 1 parent 7d3a846
Greg Studer authored milkie committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 jstests/sharding/bad_config_load.js
5 jstests/sharding/bad_config_load.js
View
@@ -38,9 +38,12 @@ for( var i = 0; i < 2; i++ ){
assert( false )
}
catch( e ){
+
+ printjson( e )
+
// Make sure we get a transport error, and not a no-primary error
// Unfortunately e gets stringified so we have to test this way
- assert( e.indexOf( "10276" ) >= 0 )
+ assert( e.indexOf( "10276" ) >= 0 || e.indexOf( "socket" ) >= 0 )
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.