Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add RedisCluster.remap_host_port, Update tests for CWE 404 (#2706) | Kristján Valur Jónsson | 2023-05-07 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | * Use provided redis address. Bind to IPv4 * Add missing "await" and perform the correct test for pipe eimpty * Wait for a send event, rather than rely on sleep time. Excpect cancel errors. * set delay to 0 except for operation we want to cancel This speeds up the unit tests considerably by eliminating unnecessary delay. * Release resources in test * Fix cluster test to use address_remap and multiple proxies. * Use context manager to manage DelayProxy * Mark failing pipeline tests * lint * Use a common "master_host" test fixture | ||||
* | Drop python 3.6 support (#2306) | dvora-h | 2022-07-27 | 1 | -8/+1 |
| | |||||
* | Fix warnings and resource usage problems in asyncio unittests (#2258) | Kristján Valur Jónsson | 2022-07-26 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use pytest-asyncio in auto mode Remove overly genereric `pytestmark=pytest.mark.asyncio` causing lots of warning noise * Use "Factories as Fixtures" test pattern for the `create_redis` fixture this fixture is now async, avoiding teardown problems with missing event loops. * Fix sporadic error on fast event loops, such as `--uvloop` * Close connection, even if "username" was in kwargs This fixes a resource usage warning in the async unittests. * Do async cleanup of acl passwords via a fixture * Remove unused import, fix whitespace * Fix test with missing "await" * Close pubsub objects after use in unittest Use a simple fixture where possible, otherwise manually call pubsub.close() * re-introduce `pytestmark=pytest.mark.asyncio` for python 3.6 * Use context manager to clean up connections in connection pool for unit tests * Provide asynccontextmanager for python 3.6 * make `test_late_subscribe()` more robuste * Catch a couple of additional leaked resources | ||||
* | update black to 22.3.0 (#2171) | Utkarsh Gupta | 2022-05-30 | 1 | -1/+1 |
| | |||||
* | Add Async Support (#1899) | Andrew Chen Wang | 2022-02-22 | 1 | -0/+249 |
Co-authored-by: Chayim I. Kirshen <c@kirshen.com> Co-authored-by: dvora-h <dvora.heller@redis.com> |