fix(trading_engine): ignore Redis integration tests that need localhost:6379
Three Redis tests were running unconditionally on CI despite requiring a local Redis server. They spin on connection attempts causing 60s+ timeouts and eventual test-gate failure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -33,6 +33,7 @@ impl TestData {
|
||||
/// Test `Redis` connection pool with `HFT` optimizations
|
||||
/// Requires `Redis` server running on localhost:6379
|
||||
#[tokio::test]
|
||||
#[ignore = "Requires Redis on localhost:6379"]
|
||||
async fn test_redis_hft_performance() {
|
||||
// Skip test if Redis is not available (for CI/CD environments)
|
||||
let config = RedisConfig {
|
||||
@@ -158,6 +159,7 @@ async fn test_redis_hft_performance() {
|
||||
/// Test `Redis` connection pool under load
|
||||
/// Requires `Redis` server running on localhost:6379
|
||||
#[tokio::test]
|
||||
#[ignore = "Requires Redis on localhost:6379"]
|
||||
async fn test_redis_concurrent_load() {
|
||||
let config = RedisConfig {
|
||||
max_connections: 60, // Increased to handle 50 concurrent tasks
|
||||
@@ -244,6 +246,7 @@ async fn test_redis_concurrent_load() {
|
||||
/// Benchmark `Redis` connection manager vs direct connection performance
|
||||
/// Requires `Redis` server running on localhost:6379
|
||||
#[tokio::test]
|
||||
#[ignore = "Requires Redis on localhost:6379"]
|
||||
async fn test_redis_connection_manager_performance() {
|
||||
let config = RedisConfig {
|
||||
max_connections: 30, // Increased for test reliability
|
||||
|
||||
Reference in New Issue
Block a user