func fatal(t *testing.T, err error) { if !DEAD { tests.TestsTearDown() DEAD = true panic(err) } }
func TestMain(m *testing.M) { log.SetFormatter(logger.ErisFormatter{}) log.SetLevel(log.ErrorLevel) // log.SetLevel(log.InfoLevel) // log.SetLevel(log.DebugLevel) tests.IfExit(testsInit()) exitCode := m.Run() tests.IfExit(tests.TestsTearDown()) os.Exit(exitCode) }
func TestMain(m *testing.M) { log.SetFormatter(logger.ErisFormatter{}) log.SetLevel(log.ErrorLevel) // log.SetLevel(log.InfoLevel) // log.SetLevel(log.DebugLevel) // Prevent CLI from starting IPFS. os.Setenv("ERIS_SKIP_ENSURE", "true") tests.IfExit(testsInit()) exitCode := m.Run() tests.IfExit(tests.TestsTearDown()) os.Exit(exitCode) }
func TestMain(m *testing.M) { runtime.GOMAXPROCS(1) log.SetFormatter(logger.ErisFormatter{}) log.SetLevel(log.ErrorLevel) // log.SetLevel(log.InfoLevel) // log.SetLevel(log.DebugLevel) tests.IfExit(tests.TestsInit("chain")) mockChainDefinitionFile(chainName) m.Run() tests.IfExit(tests.TestsTearDown()) }