From ed4be1ee4401bbee8de7375add0049f4457bf597 Mon Sep 17 00:00:00 2001 From: Jon Ayers Date: Wed, 3 Jul 2024 05:11:18 +0000 Subject: [PATCH] idk --- cli/docker.go | 3 +-- integration/docker_test.go | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/docker.go b/cli/docker.go index 4a625bc..154a1c0 100644 --- a/cli/docker.go +++ b/cli/docker.go @@ -276,7 +276,6 @@ func dockerCmd() *cobra.Command { } }() - fmt.Println("HELLO????") log.Debug(ctx, "waiting for dockerd") // We wait for the daemon after spawning the goroutine in case @@ -752,10 +751,10 @@ func runDockerCVM(ctx context.Context, log slog.Logger, client dockerutil.Docker return xerrors.Errorf("wait for exit: %w", err) } - fmt.Println("WELL WE GOT HERE AT LEAST") return nil }() log.Info(ctx, "exiting envbox", slog.Error(err)) + log.Sync() if err != nil { os.Exit(1) } diff --git a/integration/docker_test.go b/integration/docker_test.go index 8d3445e..a6b01f3 100644 --- a/integration/docker_test.go +++ b/integration/docker_test.go @@ -303,7 +303,8 @@ func TestDocker(t *testing.T) { }) require.Error(t, err) - err = pool.Client.StopContainer(resource.Container.ID, 10) + time.Sleep(time.Second * 5) + err = pool.Client.StopContainer(resource.Container.ID, 30) require.NoError(t, err) err = resource.Close()