Skip to content
Snippets Groups Projects
Unverified Commit f5c1a09d authored by Silas Davis's avatar Silas Davis
Browse files

debug main

parent 239aabca
No related branches found
No related tags found
No related merge requests found
......@@ -2,36 +2,14 @@ package rpctest
import (
"testing"
"github.com/eris-ltd/eris-db/test/fixtures"
"fmt"
"os"
)
// Needs to be in a _test.go file to be picked up
func TestMain(m *testing.M) {
ffs := fixtures.NewFileFixtures("Eris-DB")
defer ffs.RemoveAll()
err := initGlobalVariables(ffs)
if err != nil {
panic(err)
}
saveNewPriv()
// start a node
ready := make(chan error)
go newNode(ready)
err = <-ready
if err != nil {
panic(err)
}
returnValue := m.Run()
fmt.Println("foooooo", returnValue)
returnValue := TestWrapper(func() int {
return m.Run()
})
defer os.Exit(returnValue)
}
......
......@@ -2,7 +2,7 @@ package rpctest
// priv keys generated deterministically eg rpc/tests/shared.go
var defaultGenesis = `{
"chain_id" : "tendermint_test",
"chain_id" : "MyChainId",
"accounts": [
{
"address": "E9B5D87313356465FAE33C406CE2C2979DE60BCB",
......
package main
import (
"fmt"
"github.com/eris-ltd/eris-db/util"
"github.com/eris-ltd/eris-db/rpc/tendermint/test"
)
func main() {
fmt.Printf("%s", util.IsAddress("hello"), rpctest.Successor(2))
//defer os.Exit(0)
}
\ No newline at end of file
......@@ -107,8 +107,8 @@ func newNode(ready chan error) {
// Sleep forever
if err == nil {
ch := make(chan struct{})
<-ch
//ch := make(chan struct{})
//<-ch
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment