1234567891011121314151617181920212223package spindle
import ( "os" "testing")
func TestMain(m *testing.M) { for k, v := range map[string]string{ // the fake plc runs on localhost, and the did resolver only allows that in dev mode "IDRESOLVER_DEV": "1", "GIT_CONFIG_GLOBAL": os.DevNull, "GIT_CONFIG_SYSTEM": os.DevNull, "GIT_AUTHOR_NAME": "spindle", "GIT_AUTHOR_EMAIL": "spindle@tangled.org", "GIT_COMMITTER_NAME": "spindle", "GIT_COMMITTER_EMAIL": "spindle@tangled.org", } { os.Setenv(k, v) } os.Exit(m.Run())}