Skip to content

Commit

Permalink
Fix unstable tests (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
einarmo authored Nov 11, 2024
1 parent 734a115 commit 1348498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_unstable/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ def test_simple_task_report(

# Test that the task run is entered into the history for that task
res = extractor.cognite_client.get(
f"/api/v1/projects/{extractor.cognite_client.config.project}/odin/{connection_config.extraction_pipeline}/tasks/TestTask/history",
f"/api/v1/projects/{extractor.cognite_client.config.project}/odin/history?extpipe={connection_config.extraction_pipeline}&taskName=TestTask",
headers={"cdf-version": "alpha"},
).json()

assert len(res["items"]) == 1
assert res["items"][0]["taskName"] == "TestTask"
assert res["items"][0]["errorsCount"] == 0
assert res["items"][0]["errorCount"] == 0
assert start_time <= res["items"][0]["startTime"] < mid_way
assert mid_way < res["items"][0]["endTime"] < end_time

0 comments on commit 1348498

Please sign in to comment.