github.com/cheng762/platon-go@v1.8.17-0.20190529111256-7deff2d7be26/cmd/ctool/core/tx_stability_test.go (about) 1 package core 2 3 import ( 4 "os" 5 "path/filepath" 6 "testing" 7 ) 8 9 var ( 10 dir, _ = os.Getwd() 11 configPath = filepath.Join(dir, "../config.json") 12 pkFilePath = "../test/privateKeys.txt" 13 ) 14 15 /*func TestPrepareAccount(t *testing.T) { 16 parseConfigJson(configPath) 17 err := PrepareAccount(10, pkFilePath, "0xDE0B6B3A7640000") 18 if err != nil { 19 t.Fatalf(err.Error()) 20 } 21 }*/ 22 23 func TestStressTest(t *testing.T) { 24 parseConfigJson(configPath) 25 err := StabilityTest(pkFilePath, 1, 10) 26 if err != nil { 27 t.Fatalf(err.Error()) 28 } 29 }