test: adjust performance thresholds and add timeout to prevent hanging tests
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user