package main import ( "os" "testing" "time" "gitp78su.ipnodns.ru/svi/kern/v4/d0" "gitp78su.ipnodns.ru/svi/kern/v4/d1/mock_env" "gitp78su.ipnodns.ru/svi/kern/v4/d2/kern_ctx" ) func TestMain(t *testing.T) { t.Log("TestMain") owner := d0.LetOwner(1, "test_demo") _ = mock_env.MakeEnv(owner) _ = os.Unsetenv("LOCAL_HTTP_URL") _ = os.Setenv("LOCAL_HTTP_URL", "http://localhost:18332/") go main() time.Sleep(time.Second * 2) kCtx := kern_ctx.GetKernCtx() kCtx.Cancel() }