Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Aug 15, 2024
1 parent 33124f4 commit feb6247
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_get_runs_feed(self, gql_context_with_runs_and_backfills):
prev_run_time = None
id_to_timestamp_mapping = {}
for res in result.data["runsFeedOrError"]["results"]:
id_to_timestamp_mapping[res["runId"]] = res["creationTime"]
id_to_timestamp_mapping[res["id"]] = res["creationTime"]
if prev_run_time:
assert res["creationTime"] <= prev_run_time
prev_run_time = res["creationTime"]
Expand All @@ -133,7 +133,7 @@ def test_get_runs_feed(self, gql_context_with_runs_and_backfills):
prev_run_time = None
id_to_timestamp_mapping = {}
for res in result.data["runsFeedOrError"]["results"]:
id_to_timestamp_mapping[res["runId"]] = res["creationTime"]
id_to_timestamp_mapping[res["id"]] = res["creationTime"]
if prev_run_time:
assert res["creationTime"] <= prev_run_time
prev_run_time = res["creationTime"]
Expand All @@ -155,15 +155,17 @@ def test_get_runs_feed(self, gql_context_with_runs_and_backfills):

id_to_timestamp_mapping = {}
for res in result.data["runsFeedOrError"]["results"]:
id_to_timestamp_mapping[res["runId"]] = res["creationTime"]
id_to_timestamp_mapping[res["id"]] = res["creationTime"]

assert len(result.data["runsFeedOrError"]["results"]) == 10
for res in result.data["runsFeedOrError"]["results"]:
if prev_run_time:
assert res["creationTime"] <= prev_run_time
prev_run_time = res["creationTime"]

print(id_to_timestamp_mapping)

assert len(result.data["runsFeedOrError"]["results"]) == 10

# assert False

assert not result.data["runsFeedOrError"]["hasMore"]
Expand Down

0 comments on commit feb6247

Please sign in to comment.