From 79310695d939ad6f7e77039b925a85667b600043 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Thu, 18 Jan 2024 17:38:44 -0800 Subject: [PATCH] iterating on tests --- tests/unit/data/_async/test_client.py | 2 +- tests/unit/data/_async/test_mutations_batcher.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/data/_async/test_client.py b/tests/unit/data/_async/test_client.py index 52d53d09e..a0019947d 100644 --- a/tests/unit/data/_async/test_client.py +++ b/tests/unit/data/_async/test_client.py @@ -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 ( diff --git a/tests/unit/data/_async/test_mutations_batcher.py b/tests/unit/data/_async/test_mutations_batcher.py index 446cd822e..cca7c9824 100644 --- a/tests/unit/data/_async/test_mutations_batcher.py +++ b/tests/unit/data/_async/test_mutations_batcher.py @@ -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