Skip to content

Commit

Permalink
fixtest
Browse files Browse the repository at this point in the history
  • Loading branch information
gtarpenning committed Mar 4, 2025
1 parent b94fda1 commit f6d537b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/trace/test_weave_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,7 @@ def op_1():
client.flush(use_progress_bar=True)

# make sure there are no pending jobs
assert client._get_pending_jobs() == (0, 0, 0, 0)
assert client._get_pending_jobs()["total_jobs"] == 0
assert client._has_pending_jobs() == False


Expand All @@ -1912,13 +1912,13 @@ def op_1():
op_1()

def fake_logger(status):
assert "main_jobs" in status
assert "job_counts" in status

# flush with callback
client.flush(callback=fake_logger)

# make sure there are no pending jobs
assert client._get_pending_jobs() == (0, 0, 0, 0)
assert client._get_pending_jobs()["total_jobs"] == 0
assert client._has_pending_jobs() == False

op_1()
Expand All @@ -1927,5 +1927,5 @@ def fake_logger(status):
client.flush(callback=fake_logger, use_progress_bar=True)

# make sure there are no pending jobs
assert client._get_pending_jobs() == (0, 0, 0, 0)
assert client._get_pending_jobs()["total_jobs"] == 0
assert client._has_pending_jobs() == False

0 comments on commit f6d537b

Please sign in to comment.