From 6bb9088a0b11e71f444613ceba361beb84e94558 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Mon, 10 Sep 2018 07:49:02 +0800 Subject: [PATCH] fix unittest for httpbin response time --- tests/test_api.py | 2 +- tests/test_response.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_api.py b/tests/test_api.py index 010d2ec8..9484c50a 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -173,7 +173,7 @@ class TestHttpRunner(ApiServerUnittest): end_time = time.time() summary = runner.summary self.assertTrue(summary["success"]) - self.assertLess(end_time - start_time, 20) + self.assertLess(end_time - start_time, 60) def test_run_httprunner_with_teardown_hooks_alter_response(self): testcases = [ diff --git a/tests/test_response.py b/tests/test_response.py index bc02ebd5..c54058ae 100644 --- a/tests/test_response.py +++ b/tests/test_response.py @@ -136,7 +136,7 @@ class TestResponse(ApiServerUnittest): ] extract_binds_dict = resp_obj.extract_response(extract_binds_list) self.assertGreater(extract_binds_dict["resp_elapsed_microseconds"], 1000) - self.assertLess(extract_binds_dict["resp_elapsed_seconds"], 10) + self.assertLess(extract_binds_dict["resp_elapsed_seconds"], 60) self.assertEqual(extract_binds_dict["resp_elapsed_days"], 0) self.assertGreater(extract_binds_dict["resp_elapsed_total_seconds"], 0)