Skip to content

Commit 7453eea

Browse files
committed
doc and flakey test
1 parent a1a0944 commit 7453eea

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ async for row in result:
109109
await process_row(row) # Non-blocking, other requests keep flowing
110110
```
111111

112-
This is critical for web applications where blocking the event loop means all other requests stop being processed. For a detailed explanation of this issue, see our [streaming documentation](docs/streaming.md#the-async-problem-with-manual-paging).
112+
This is critical for web applications where blocking the event loop means all other requests stop being processed. For a detailed explanation of this issue, see our [streaming documentation](docs/streaming.md).
113113

114114
## ⚠️ Important Limitations
115115

tests/integration/test_example_scripts.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ async def setup_cassandra(self, cassandra_cluster):
4949
# Cassandra is guaranteed to be available via cassandra_cluster fixture
5050
pass
5151

52+
@pytest.mark.timeout(180) # Override default timeout for this test
5253
async def test_streaming_basic_example(self, cassandra_cluster):
5354
"""
5455
Test the basic streaming example.
@@ -76,7 +77,7 @@ async def test_streaming_basic_example(self, cassandra_cluster):
7677
[sys.executable, str(script_path)],
7778
capture_output=True,
7879
text=True,
79-
timeout=60, # Allow time for data generation
80+
timeout=120, # Allow time for 100k events generation
8081
)
8182

8283
# Check execution succeeded
@@ -264,6 +265,7 @@ async def test_metrics_simple_example(self, cassandra_cluster):
264265
assert "Success rate:" in output or "Success Rate:" in output
265266
assert "Average latency:" in output or "Average Duration:" in output
266267

268+
@pytest.mark.timeout(240) # Override default timeout for this test (lots of data)
267269
async def test_realtime_processing_example(self, cassandra_cluster):
268270
"""
269271
Test the real-time processing example.
@@ -291,7 +293,7 @@ async def test_realtime_processing_example(self, cassandra_cluster):
291293
[sys.executable, str(script_path)],
292294
capture_output=True,
293295
text=True,
294-
timeout=90, # Allow more time for data processing
296+
timeout=180, # Allow more time for 108k readings (50 sensors × 2160 time points)
295297
)
296298

297299
# Check execution succeeded

0 commit comments

Comments
 (0)