Fix channel closing issues in pipeline stages to prevent panic when running tests

This commit is contained in:
Krypto Kajun
2025-09-12 19:17:26 -05:00
parent 1113d82499
commit 7dd5b5b692
2 changed files with 18 additions and 11 deletions

View File

@@ -63,11 +63,6 @@ func TestPipelineIntegration(t *testing.T) {
}
func TestMarketManagerAndScannerIntegration(t *testing.T) {
// Create test config
cfg := &config.BotConfig{
MinProfitThreshold: 10.0,
}
// Create test logger
logger := logger.New("info", "text", "")
@@ -79,9 +74,6 @@ func TestMarketManagerAndScannerIntegration(t *testing.T) {
},
}, logger)
// Create market scanner
scnr := scanner.NewMarketScanner(cfg, logger)
// Get a pool from the market manager
ctx := context.Background()
poolAddress := common.HexToAddress("0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640")
@@ -98,9 +90,6 @@ func TestMarketManagerAndScannerIntegration(t *testing.T) {
// Verify pools are returned
assert.NotNil(t, pools)
// Use the variables to avoid unused variable warnings
_ = scnr
}
func TestEventParserAndPipelineIntegration(t *testing.T) {