diff --git a/tests/data/bazel/record_test_result.json b/tests/data/bazel/record_test_result.json index edb19e457..87e38965d 100644 --- a/tests/data/bazel/record_test_result.json +++ b/tests/data/bazel/record_test_result.json @@ -12,7 +12,6 @@ "status": 1, "stdout": "", "stderr": "", - "created_at": "2020-12-16T03:11:43.009Z", "data": null }, { @@ -27,7 +26,6 @@ "status": 1, "stdout": "", "stderr": "", - "created_at": "2020-12-16T03:11:43.526Z", "data": null }, { @@ -42,7 +40,6 @@ "status": 1, "stdout": "", "stderr": "", - "created_at": "2020-12-16T03:11:42.885Z", "data": null }, { @@ -57,7 +54,6 @@ "status": 1, "stdout": "", "stderr": "", - "created_at": "2020-12-16T03:11:43.867Z", "data": null }, { @@ -72,7 +68,6 @@ "status": 1, "stdout": "", "stderr": "", - "created_at": "2020-12-16T03:11:42.809Z", "data": null }, { @@ -87,7 +82,6 @@ "status": 1, "stdout": "", "stderr": "", - "created_at": "2020-12-16T03:11:43.179Z", "data": null }, { @@ -102,7 +96,6 @@ "status": 1, "stdout": "", "stderr": "", - "created_at": "2020-12-16T03:11:43.361Z", "data": null }, { @@ -117,7 +110,6 @@ "status": 1, "stdout": "", "stderr": "", - "created_at": "2020-12-16T03:11:43.716Z", "data": null }, { @@ -132,7 +124,6 @@ "status": 1, "stdout": "", "stderr": "", - "created_at": "2020-12-16T03:11:42.765Z", "data": null } ] diff --git a/tests/test_runners/test_bazel.py b/tests/test_runners/test_bazel.py index e0170b269..3e2595dad 100644 --- a/tests/test_runners/test_bazel.py +++ b/tests/test_runners/test_bazel.py @@ -47,6 +47,10 @@ def test_record_test(self): b''.join(responses.calls[1].request.body)).decode()) expected = self.load_json_from_file( self.test_files_dir.joinpath('record_test_result.json')) + + for c in payload['events']: + del c['created_at'] + self.assertEqual(payload, expected) @responses.activate