Merge pull request #1117 from elezar/fix-unit-tests
Some checks failed
CI Pipeline / code-scanning (push) Has been cancelled
CI Pipeline / variables (push) Has been cancelled
CI Pipeline / golang (push) Has been cancelled
CI Pipeline / image (push) Has been cancelled
CI Pipeline / e2e-test (push) Has been cancelled

Fix unit tests
This commit is contained in:
Evan Lezar 2025-05-30 15:44:16 +02:00 committed by GitHub
commit f202b80a9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,12 +78,14 @@ func TestDiscoverModifier(t *testing.T) {
{ {
Path: "/hook/a", Path: "/hook/a",
Args: []string{"/hook/a", "arga"}, Args: []string{"/hook/a", "arga"},
Env: []string{"NVIDIA_CTK_DEBUG=false"},
}, },
}, },
CreateContainer: []specs.Hook{ CreateContainer: []specs.Hook{
{ {
Path: "/hook/b", Path: "/hook/b",
Args: []string{"/hook/b", "argb"}, Args: []string{"/hook/b", "argb"},
Env: []string{"NVIDIA_CTK_DEBUG=false"},
}, },
}, },
}, },
@ -123,6 +125,7 @@ func TestDiscoverModifier(t *testing.T) {
{ {
Path: "/hook/b", Path: "/hook/b",
Args: []string{"/hook/b", "argb"}, Args: []string{"/hook/b", "argb"},
Env: []string{"NVIDIA_CTK_DEBUG=false"},
}, },
}, },
}, },