Skip to content

Commit

Permalink
Fix the inference body to send an actual test session id
Browse files Browse the repository at this point in the history
  • Loading branch information
shuheiktgw committed Dec 7, 2020
1 parent 707299a commit 54bef8c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nose_launchable/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 54bef8c

Please sign in to comment.