fix(sandbox): use E2B BuildID as template version
Disable the docker idle sweeper in integration tests so shared developer daemons are not reaped.main
parent
a799f23b26
commit
815d32d3a9
|
|
@ -56,6 +56,9 @@ func newDockerIntegrationManager(t *testing.T, cfg *Config) *SessionBoundManager
|
|||
if err != nil {
|
||||
t.Fatalf("build docker client: %v", err)
|
||||
}
|
||||
// Integration tests clean up their own sessions. Do not reclaim unrelated
|
||||
// idle containers when using a shared developer daemon.
|
||||
client.sweeper = nil
|
||||
probeCtx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
|
||||
defer cancel()
|
||||
if err := client.Health(probeCtx); err != nil {
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ func (c *E2BRemoteClient) ListTemplates(ctx context.Context) ([]RemoteTemplate,
|
|||
ID: item.TemplateID,
|
||||
Name: name,
|
||||
Status: status,
|
||||
Version: item.EnvdVersion,
|
||||
Version: item.BuildID,
|
||||
CreatedAt: item.CreatedAt,
|
||||
UpdatedAt: item.UpdatedAt,
|
||||
Standard: standard,
|
||||
|
|
|
|||
Loading…
Reference in New Issue