)]}'
{"tempest/tests/common/test_waiters.py":[{"author":{"_account_id":23186,"name":"Felipe Monteiro","email":"felipe.carneiro.monteiro@gmail.com","username":"felipe.monteiro"},"change_message_id":"78a1ed536b72ee6440ea413ace2dcbe878023b24","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                                          \u0027ACTIVE\u0027)"},{"line_number":92,"context_line":"        end_time \u003d int(time.time())"},{"line_number":93,"context_line":"        # Ensure waiter returns before build_timeout"},{"line_number":94,"context_line":"        self.assertLess((end_time - start_time), 10)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def test_wait_for_interface_status_timeout(self):"},{"line_number":97,"context_line":"        time_mock \u003d self.patch(\u0027time.time\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_6890424b","line":94,"range":{"start_line":94,"start_character":7,"end_line":94,"end_character":52},"updated":"2018-05-11 21:37:11.000000000","message":"10 seconds feels like a random number. How about we use a mock, check that sleep was called for 1 second, and that the test finished before the timeout?\n\nThis test should finish in well under 1 second if we mock out the time.sleep.\n  \n        ...\n        mock_time \u003d self.patch(\u0027time.time\u0027)\n\n        start_time \u003d int(time.time())\n        waiters.wait_for_interface_status(self.client, \u0027server_id\u0027, \u0027port_id\u0027,\n                                          \u0027ACTIVE\u0027)\n        end_time \u003d int(time.time())\n        \n        self.assertLess(end_time, (start_time + self.client.build_timeout))\n        mock_time.sleep.assert_called_once_with(self.client.build_interval)","commit_id":"ae82a0869417ee62d09e71d3cab3a47a3af2e3d3"},{"author":{"_account_id":8864,"name":"Artom Lifshitz","email":"notartom@gmail.com","username":"artom"},"change_message_id":"2bee9d575b4a55f65a16a04cd78e517e4fbeb8d4","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                                          \u0027ACTIVE\u0027)"},{"line_number":92,"context_line":"        end_time \u003d int(time.time())"},{"line_number":93,"context_line":"        # Ensure waiter returns before build_timeout"},{"line_number":94,"context_line":"        self.assertLess((end_time - start_time), 10)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def test_wait_for_interface_status_timeout(self):"},{"line_number":97,"context_line":"        time_mock \u003d self.patch(\u0027time.time\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_0b309fe7","line":94,"range":{"start_line":94,"start_character":7,"end_line":94,"end_character":52},"in_reply_to":"5f7c97a3_6890424b","updated":"2018-05-13 13:46:42.000000000","message":"Done","commit_id":"ae82a0869417ee62d09e71d3cab3a47a3af2e3d3"}]}
