Skip to content

Commit

Permalink
iterating on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Jan 19, 2024
1 parent b2bf56f commit 7931069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit/data/_async/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ def test_client_ctor_sync(self):
# initializing client in a sync context should raise RuntimeError

with pytest.warns(RuntimeWarning) as warnings:
client = _make_client(project="project-id")
client = _make_client(project="project-id", use_emulator=False)
expected_warning = [w for w in warnings if "client.py" in w.filename]
assert len(expected_warning) == 1
assert (
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/data/_async/test_mutations_batcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ async def mock_call(*args, **kwargs):
assert len(instance._oldest_exceptions) == 0
assert len(instance._newest_exceptions) == 0
# if flushes were sequential, total duration would be 1s
assert duration < 0.25
assert duration < 0.5
assert op_mock.call_count == num_calls

@pytest.mark.asyncio
Expand Down

0 comments on commit 7931069

Please sign in to comment.