We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbcb2af commit 9200b3dCopy full SHA for 9200b3d
utils/utils_test.go
@@ -24,6 +24,12 @@ import (
24
)
25
26
func TestContainerRuntimeUtils(t *testing.T) {
27
+ containerCmd := func() string {
28
+ if !MACOS {
29
+ return "nerdctl"
30
+ }
31
+ return "docker"
32
+ }()
33
testcases := []struct {
34
name string
35
input string
@@ -33,13 +39,13 @@ func TestContainerRuntimeUtils(t *testing.T) {
39
{
40
name: "containerd runtime is valid, and nerdctl is returned",
41
input: "containerd",
36
- expected: "nerdctl",
42
+ expected: containerCmd,
37
43
valid: !MACOS,
38
44
},
45
46
name: "containerd runtime with extra spaces is valid, and nerdctl is returned",
47
input: " containerd ",
48
49
50
51
0 commit comments