From 54bef8c3166b4f1466d34ef3397d9eafef4d8f21 Mon Sep 17 00:00:00 2001 From: shuheiktgw Date: Mon, 7 Dec 2020 15:53:13 +0900 Subject: [PATCH] Fix the inference body to send an actual test session id --- nose_launchable/client.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nose_launchable/client.py b/nose_launchable/client.py index 94a39fa..c4d66ea 100644 --- a/nose_launchable/client.py +++ b/nose_launchable/client.py @@ -33,8 +33,6 @@ def _get_base_url(cls): class LaunchableClient: - # TODO: Stop using a fictitious id once the server starts dynamic reordering - FICTITIOUS_ID = "1" CLIENT_NAME = "nose-launchable" def __init__(self, base_url, org_name, workspace_name, token, http): @@ -111,7 +109,7 @@ def _headers(self): def _infer_request_body(self, test): return { "test": test, - "session": {"id": self.FICTITIOUS_ID, "subject": self.FICTITIOUS_ID, "flavors": {}}, + "session": {"id": self.test_session_id, "subject": self.build_number, "flavors": {}}, } def _upload_request_body(self, events):