Ejemplo n.º 1
0
    def maybe_skip(self):
        if (yield from server_is_mongos(self.cx)):
            raise SkipTest("mongos has no maxTimeAlwaysTimeOut fail point")

        cmdline = yield from get_command_line(self.cx)
        if '1' != safe_get(cmdline, 'parsed.setParameter.enableTestCommands'):
            if 'enableTestCommands=1' not in cmdline['argv']:
                raise SkipTest("testing maxTimeMS requires failpoints")
Ejemplo n.º 2
0
    def maybe_skip(self):
        if (yield from server_is_mongos(self.cx)):
            raise SkipTest("mongos has no maxTimeAlwaysTimeOut fail point")

        cmdline = yield from get_command_line(self.cx)
        if '1' != safe_get(cmdline, 'parsed.setParameter.enableTestCommands'):
            if 'enableTestCommands=1' not in cmdline['argv']:
                raise SkipTest("testing maxTimeMS requires failpoints")
Ejemplo n.º 3
0
 def maybe_skip(self):
     if not (yield from at_least(self.cx, (2, 5, 3, -1))):
         raise SkipTest("maxTimeMS requires MongoDB >= 2.5.3")
     cmd_line = yield from get_command_line(self.cx)
     if "enableTestCommands=1" not in cmd_line:
         raise SkipTest("testing maxTimeMS requires failpoints")
Ejemplo n.º 4
0
 def maybe_skip(self):
     if not (yield from at_least(self.cx, (2, 5, 3, -1))):
         raise SkipTest("maxTimeMS requires MongoDB >= 2.5.3")
     cmd_line = yield from get_command_line(self.cx)
     if "enableTestCommands=1" not in cmd_line:
         raise SkipTest("testing maxTimeMS requires failpoints")