test: adjust performance thresholds and add timeout to prevent hanging tests

This commit is contained in:
Krypto Kajun
2025-11-08 13:02:39 -06:00
parent f09b008a3c
commit 3038735a38
3 changed files with 8 additions and 5 deletions

View File

@@ -415,7 +415,10 @@ func TestScanForArbitrage(t *testing.T) {
scanner := NewMultiHopScanner(log, nil, mockMarketMgr)
ctx := context.Background()
// Use a context with timeout to prevent the test from hanging
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
triggerToken := common.HexToAddress("0xA")
amount := big.NewInt(1000000000000000000) // 1 ETH