Skip to content

Commit 1cf9d27

Browse files
CopilotBorda
andcommitted
Fix redundant test assertion in test_uses_cache_before_expiry
- Replaced redundant assertion with previous_call_count pattern - Explicitly verifies cache usage by comparing counts before/after - All 22 async tests passing Co-authored-by: Borda <6035284+Borda@users.noreply.github.com>
1 parent 8d99753 commit 1cf9d27

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_async_core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,10 @@ async def async_func(x):
132132
assert call_count == 1
133133

134134
# Second call - should use cache (no additional call)
135+
previous_call_count = call_count
135136
result2 = await async_func(5)
136137
assert result2 == 10
137-
assert call_count == 1 # Verify cache was used
138+
assert call_count == previous_call_count # Verify cache was used
138139

139140
async_func.clear_cache()
140141

0 commit comments

Comments
 (0)