From ec1fae16937fee59517b406cfb43f3796279ad28 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 2 Apr 2024 15:50:13 +0200 Subject: [PATCH] Treat empty mode as auto Signed-off-by: Evan Lezar --- internal/runtime/runtime_factory_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/runtime/runtime_factory_test.go b/internal/runtime/runtime_factory_test.go index 33056fa30..d10933a55 100644 --- a/internal/runtime/runtime_factory_test.go +++ b/internal/runtime/runtime_factory_test.go @@ -131,13 +131,12 @@ func TestFactoryMethod(t *testing.T) { }, }, { - description: "empty mode raises error", + description: "empty mode returns modifier", cfg: &config.Config{ NVIDIAContainerRuntimeConfig: config.RuntimeConfig{ Runtimes: []string{"runc"}, }, }, - expectedError: true, }, }