Commit 84e817e1 authored by linj's avatar linj Committed by vipwzw

fix ticket TestMain

parent 43ba1aca
...@@ -3,6 +3,7 @@ package executor_test ...@@ -3,6 +3,7 @@ package executor_test
import ( import (
"encoding/hex" "encoding/hex"
"fmt" "fmt"
"os"
"strings" "strings"
"testing" "testing"
...@@ -26,8 +27,9 @@ var mock33 *testnode.Chain33Mock ...@@ -26,8 +27,9 @@ var mock33 *testnode.Chain33Mock
func TestMain(m *testing.M) { func TestMain(m *testing.M) {
mock33 = testnode.New("testdata/chain33.cfg.toml", nil) mock33 = testnode.New("testdata/chain33.cfg.toml", nil)
mock33.Listen() mock33.Listen()
m.Run() code := m.Run()
mock33.Close() mock33.Close()
os.Exit(code)
} }
func TestTicketPrice(t *testing.T) { func TestTicketPrice(t *testing.T) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment