diff --git a/tests/test_autopkgtest.py b/tests/test_autopkgtest.py index 3fbba9d..3152270 100755 --- a/tests/test_autopkgtest.py +++ b/tests/test_autopkgtest.py @@ -171,7 +171,14 @@ class T(TestBase): try: with open(self.fake_amqp) as f: for line in f: - self.amqp_requests.add(line.strip()) + # debci-series-amd64:darkgreen {"triggers": ["darkgreen/2"], "submit-time": "2020-01-16 09:47:12"} + # strip the submit time from the requests we're testing; it + # is only for info for people reading the queue + (queuepkg, data) = line.split(' ', 1) + data_json = json.loads(data) + del data_json["submit-time"] + self.amqp_requests.add("{} {}".format(queuepkg, + json.dumps(data_json))) os.unlink(self.fake_amqp) except IOError: pass