optimizes test parameters

This commit is contained in:
Victor Farazdagi 2017-02-11 04:33:02 +03:00
parent 772467c8a7
commit 34ea4e9c4c
3 changed files with 11 additions and 11 deletions

View File

@ -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)

View File

@ -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)

View File

@ -26,7 +26,7 @@ var muPrepareTestNode sync.Mutex
const (
TestDataDir = "../.ethereumtest"
TestNodeSyncSeconds = 30
TestNodeSyncSeconds = 60
TestNodeHTTPPort = 8645
TestNodeWSPort = 8646
)