From 89017483ac0f310ce083febd08ad5072d56be5b1 Mon Sep 17 00:00:00 2001 From: Jeffrey Picard Date: Mon, 24 Oct 2022 11:14:23 +0000 Subject: [PATCH] NewDebug --- main.go | 2 +- server/jsonrpc_blockchain_test.go | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/main.go b/main.go index 424e29a..e78be35 100644 --- a/main.go +++ b/main.go @@ -30,7 +30,7 @@ func main() { // This will cancel goroutines with the server finishes. // ctxWCancel, cancel := context.WithCancel(ctx) // defer cancel() - stopGroup := stop.NewDebug() + stopGroup := stop.New() // defer stopGroup.Stop() initsignals(stopGroup.Ch()) diff --git a/server/jsonrpc_blockchain_test.go b/server/jsonrpc_blockchain_test.go index 16bb9dd..aab7678 100644 --- a/server/jsonrpc_blockchain_test.go +++ b/server/jsonrpc_blockchain_test.go @@ -58,7 +58,7 @@ var regTestAddrs = [30]string{ func TestServerGetHeight(t *testing.T) { secondaryPath := "asdf" - grp := stop.New() + grp := stop.NewDebug() db, err := db.GetProdDB(regTestDBPath, secondaryPath, grp) defer db.Shutdown() if err != nil { @@ -89,7 +89,7 @@ func TestServerGetHeight(t *testing.T) { func TestGetChunk(t *testing.T) { secondaryPath := "asdf" - grp := stop.New() + grp := stop.NewDebug() db, err := db.GetProdDB(regTestDBPath, secondaryPath, grp) defer db.Shutdown() if err != nil { @@ -133,7 +133,7 @@ func TestGetChunk(t *testing.T) { func TestGetHeader(t *testing.T) { secondaryPath := "asdf" - grp := stop.New() + grp := stop.NewDebug() db, err := db.GetProdDB(regTestDBPath, secondaryPath, grp) defer db.Shutdown() if err != nil { @@ -163,7 +163,7 @@ func TestGetHeader(t *testing.T) { func TestHeaders(t *testing.T) { secondaryPath := "asdf" - grp := stop.New() + grp := stop.NewDebug() db, err := db.GetProdDB(regTestDBPath, secondaryPath, grp) defer db.Shutdown() if err != nil { @@ -195,7 +195,7 @@ func TestHeaders(t *testing.T) { func TestHeadersSubscribe(t *testing.T) { args := MakeDefaultTestArgs() - grp := stop.New() + grp := stop.NewDebug() secondaryPath := "asdf" db, err := db.GetProdDB(regTestDBPath, secondaryPath, grp) defer db.Shutdown() @@ -288,7 +288,7 @@ func TestHeadersSubscribe(t *testing.T) { func TestGetBalance(t *testing.T) { secondaryPath := "asdf" - grp := stop.New() + grp := stop.NewDebug() db, err := db.GetProdDB(regTestDBPath, secondaryPath, grp) defer db.Shutdown() if err != nil { @@ -318,7 +318,7 @@ func TestGetBalance(t *testing.T) { func TestGetHistory(t *testing.T) { secondaryPath := "asdf" - grp := stop.New() + grp := stop.NewDebug() db, err := db.GetProdDB(regTestDBPath, secondaryPath, grp) defer db.Shutdown() if err != nil { @@ -348,7 +348,7 @@ func TestGetHistory(t *testing.T) { func TestListUnspent(t *testing.T) { secondaryPath := "asdf" - grp := stop.New() + grp := stop.NewDebug() db, err := db.GetProdDB(regTestDBPath, secondaryPath, grp) defer db.Shutdown() if err != nil { @@ -378,7 +378,7 @@ func TestListUnspent(t *testing.T) { func TestAddressSubscribe(t *testing.T) { args := MakeDefaultTestArgs() - grp := stop.New() + grp := stop.NewDebug() secondaryPath := "asdf" db, err := db.GetProdDB(regTestDBPath, secondaryPath, grp) defer db.Shutdown()