optimizes test parameters
This commit is contained in:
parent
772467c8a7
commit
34ea4e9c4c
|
@ -35,6 +35,14 @@ func testExportedAPI(t *testing.T, done chan struct{}) {
|
|||
name string
|
||||
fn func(t *testing.T) bool
|
||||
}{
|
||||
{
|
||||
"reset blockchain data",
|
||||
testResetChainData,
|
||||
},
|
||||
{
|
||||
"pause node",
|
||||
testStopResumeNode,
|
||||
},
|
||||
{
|
||||
"restart node RPC",
|
||||
testRestartNodeRPC,
|
||||
|
@ -79,14 +87,6 @@ func testExportedAPI(t *testing.T, done chan struct{}) {
|
|||
"test jailed calls",
|
||||
testJailFunctionCall,
|
||||
},
|
||||
{
|
||||
"reset blockchain data",
|
||||
testResetChainData,
|
||||
},
|
||||
{
|
||||
"pause node",
|
||||
testStopResumeNode,
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
|
@ -111,7 +111,7 @@ func testResetChainData(t *testing.T) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
time.Sleep(15 * time.Second) // allow to re-sync blockchain
|
||||
time.Sleep(testNodeSyncSeconds * time.Second) // allow to re-sync blockchain
|
||||
|
||||
testCompleteTransaction(t)
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@ func TestResetChainData(t *testing.T) {
|
|||
}
|
||||
|
||||
// allow some time to re-sync
|
||||
time.Sleep(15 * time.Second)
|
||||
time.Sleep(geth.TestNodeSyncSeconds * time.Second)
|
||||
|
||||
// now make sure that everything is intact
|
||||
TestQueuedTransactions(t)
|
||||
|
|
|
@ -26,7 +26,7 @@ var muPrepareTestNode sync.Mutex
|
|||
|
||||
const (
|
||||
TestDataDir = "../.ethereumtest"
|
||||
TestNodeSyncSeconds = 30
|
||||
TestNodeSyncSeconds = 60
|
||||
TestNodeHTTPPort = 8645
|
||||
TestNodeWSPort = 8646
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue