Skip to content

Commit

Permalink
idk
Browse files Browse the repository at this point in the history
  • Loading branch information
sreya committed Jul 3, 2024
1 parent 81eb4d5 commit ed4be1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cli/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Check failure on line 759 in cli/docker.go

View workflow job for this annotation

GitHub Actions / lint

deep-exit: calls to os.Exit only in main() or init() functions (revive)
}
Expand Down
3 changes: 2 additions & 1 deletion integration/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ed4be1e

Please sign in to comment.