def test_busy_wait_timeout(self):
        os.path.ismount = mock_os_path_ismount_false

        # setup time mock
        real_time_sleep = time.sleep
        time.sleep = mock_time_sleep

        try:
            self.assertFalse(gfs._busy_wait("/"))
        finally:
            time.sleep = real_time_sleep
示例#2
0
    def test_busy_wait_timeout(self):
        os.path.ismount = mock_os_path_ismount_false

        # setup time mock
        real_time_sleep = time.sleep
        time.sleep = mock_time_sleep

        try:
            self.assertFalse(gfs._busy_wait("/"))
        finally:
            time.sleep = real_time_sleep
 def test_busy_wait(self):
     self.assertTrue(gfs._busy_wait("/"))
示例#4
0
 def test_busy_wait(self):
     self.assertTrue(gfs._busy_wait("/"))