package main import ( "os" "testing" "time" "gitp78su.ipnodns.ru/svi/kern/krn/kctx" "gitp78su.ipnodns.ru/svi/kern/mock/mock_env" ) func TestMain(t *testing.T) { _ = mock_env.MakeEnv() _ = os.Unsetenv("LOCAL_HTTP_URL") os.Setenv("LOCAL_HTTP_URL", "http://localhost:18330/") go main() time.Sleep(time.Second * 2) kCtx := kctx.GetKernelCtx() kCtx.Cancel() }