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()