diff options
Diffstat (limited to 'buildscripts/resmokelib/testing/testcases/jstest.py')
-rw-r--r-- | buildscripts/resmokelib/testing/testcases/jstest.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/buildscripts/resmokelib/testing/testcases/jstest.py b/buildscripts/resmokelib/testing/testcases/jstest.py index a38c3859228..c1c93925936 100644 --- a/buildscripts/resmokelib/testing/testcases/jstest.py +++ b/buildscripts/resmokelib/testing/testcases/jstest.py @@ -62,9 +62,6 @@ class JSTestCase(interface.TestCase): def configure(self, fixture, num_clients=DEFAULT_CLIENT_NUM, *args, **kwargs): interface.TestCase.configure(self, fixture, *args, **kwargs) - if self.fixture.port is not None: - self.shell_options["port"] = self.fixture.port - global_vars = self.shell_options.get("global_vars", {}).copy() data_dir = self._get_data_dir(global_vars) @@ -179,10 +176,12 @@ class JSTestCase(interface.TestCase): # set to self.logger. logger = utils.default_if_none(logger, self.logger) - return core.programs.mongo_shell_program(logger, - executable=self.shell_executable, - filename=self.js_filename, - **shell_options) + return core.programs.mongo_shell_program( + logger, + executable=self.shell_executable, + filename=self.js_filename, + connection_string=self.fixture.get_driver_connection_url(), + **shell_options) def _run_test_in_thread(self, thread_id): # Make a logger for each thread. When this method gets called self.logger has been |