aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-08-07 17:53:32 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-08-07 17:53:32 +0800
commit5b742fb82b31298f384c2ee7fb76fb1fa3a3f6e9 (patch)
tree212bb009dc42b4452fee682c4dd90898c93a310b /core
parent1059927f9cd2fde1a805c5297fb75db2e6f8584d (diff)
downloaddexon-5b742fb82b31298f384c2ee7fb76fb1fa3a3f6e9.tar
dexon-5b742fb82b31298f384c2ee7fb76fb1fa3a3f6e9.tar.gz
dexon-5b742fb82b31298f384c2ee7fb76fb1fa3a3f6e9.tar.bz2
dexon-5b742fb82b31298f384c2ee7fb76fb1fa3a3f6e9.tar.lz
dexon-5b742fb82b31298f384c2ee7fb76fb1fa3a3f6e9.tar.xz
dexon-5b742fb82b31298f384c2ee7fb76fb1fa3a3f6e9.tar.zst
dexon-5b742fb82b31298f384c2ee7fb76fb1fa3a3f6e9.zip
core: bump timeout test to avoid flakyness on overloaded ci
Diffstat (limited to 'core')
-rw-r--r--core/tx_pool_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/tx_pool_test.go b/core/tx_pool_test.go
index 80bc0b384..9a03caf61 100644
--- a/core/tx_pool_test.go
+++ b/core/tx_pool_test.go
@@ -750,14 +750,14 @@ func TestTransactionQueueTimeLimitingNoLocals(t *testing.T) { testTransactionQue
func testTransactionQueueTimeLimiting(t *testing.T, nolocals bool) {
// Reduce the eviction interval to a testable amount
defer func(old time.Duration) { evictionInterval = old }(evictionInterval)
- evictionInterval = 250 * time.Millisecond
+ evictionInterval = time.Second
// Create the pool to test the non-expiration enforcement
db, _ := ethdb.NewMemDatabase()
statedb, _ := state.New(common.Hash{}, state.NewDatabase(db))
config := testTxPoolConfig
- config.Lifetime = 250 * time.Millisecond
+ config.Lifetime = time.Second
config.NoLocals = nolocals
pool := NewTxPool(config, params.TestChainConfig, new(event.TypeMux), func() (*state.StateDB, error) { return statedb, nil }, func() *big.Int { return big.NewInt(1000000) })