func testsInit() error { if err := tests.TestsInit("files"); err != nil { return err } return nil }
func TestMain(m *testing.M) { log.SetFormatter(logger.ErisFormatter{}) log.SetLevel(log.ErrorLevel) // log.SetLevel(log.InfoLevel) // log.SetLevel(log.DebugLevel) tests.IfExit(tests.TestsInit("data")) 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()) }
func TestMain(m *testing.M) { log.SetFormatter(logger.ErisFormatter{}) log.SetLevel(log.ErrorLevel) // log.SetLevel(log.InfoLevel) // log.SetLevel(log.DebugLevel) tests.IfExit(tests.TestsInit("services")) // Prevent CLI from starting IPFS. os.Setenv("ERIS_SKIP_ENSURE", "true") exitCode := m.Run() log.Info("Tearing tests down") tests.IfExit(tests.TestsTearDown()) os.Exit(exitCode) }
func testsInit() error { if err := tests.TestsInit("clean"); err != nil { return err } return nil }