Skip to content

Commit

Permalink
Remove blocking test
Browse files Browse the repository at this point in the history
  • Loading branch information
pykong committed Nov 23, 2023
1 parent 46991ab commit 891ae09
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions game/test/reporter/test_kafka_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,6 @@ def test_run_once_pushes_report(kafka_reporter, mock_kafka_producer):
)


def test_run_once_skips_when_queue_is_empty(kafka_reporter, mock_kafka_producer):
# Given an empty queue
assert kafka_reporter.queue.empty()

# When _run_once is called
kafka_reporter.running = False
with kafka_reporter.condition:
kafka_reporter._run_once()

# Then no Kafka operation should be called
mock_kafka_producer.produce.assert_not_called()


def test_terminate_stops_thread(kafka_reporter):
# When the terminate function is called
kafka_reporter._terminate(None, None)
Expand Down

0 comments on commit 891ae09

Please sign in to comment.