fix: Configure CI to use Docker for go tests and add Docker availability checks to sandbox manager tests.
This commit is contained in:
parent
bd6d839277
commit
ac52547f2b
2 changed files with 8 additions and 0 deletions
2
.github/workflows/pr.yml
vendored
2
.github/workflows/pr.yml
vendored
|
|
@ -41,3 +41,5 @@ jobs:
|
||||||
|
|
||||||
- name: Run go test
|
- name: Run go test
|
||||||
run: go test ./...
|
run: go test ./...
|
||||||
|
env:
|
||||||
|
DOCKER_HOST: unix:///var/run/docker.sock
|
||||||
|
|
|
||||||
|
|
@ -311,6 +311,9 @@ func TestScopedSandboxManager_Delegates(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestScopedSandboxManager_ContainerDelegates(t *testing.T) {
|
func TestScopedSandboxManager_ContainerDelegates(t *testing.T) {
|
||||||
|
_, cleanup := skipIfNoDocker(t)
|
||||||
|
defer cleanup()
|
||||||
|
|
||||||
home := t.TempDir()
|
home := t.TempDir()
|
||||||
t.Setenv("HOME", home)
|
t.Setenv("HOME", home)
|
||||||
ws := filepath.Join(home, "container_ws")
|
ws := filepath.Join(home, "container_ws")
|
||||||
|
|
@ -379,6 +382,9 @@ func TestScopedSandboxManager_ContainerDelegates(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestScopedSandboxManager_ContainerCreationError(t *testing.T) {
|
func TestScopedSandboxManager_ContainerCreationError(t *testing.T) {
|
||||||
|
_, cleanup := skipIfNoDocker(t)
|
||||||
|
defer cleanup()
|
||||||
|
|
||||||
home := t.TempDir()
|
home := t.TempDir()
|
||||||
t.Setenv("HOME", home)
|
t.Setenv("HOME", home)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue