From 97602ef892cef47ffd6b027d3ef054a21a039bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Thu, 26 Oct 2023 13:28:44 +0200 Subject: [PATCH] Change requires to asserts in TestUpdateRegistrySettings Fixup: Implement TestUpdateRegistrySettings --- windows-agent/internal/config/config_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows-agent/internal/config/config_test.go b/windows-agent/internal/config/config_test.go index b8244a80b..7298d13cc 100644 --- a/windows-agent/internal/config/config_test.go +++ b/windows-agent/internal/config/config_test.go @@ -507,10 +507,10 @@ func TestUpdateRegistrySettings(t *testing.T) { out, err := readFileOrEmpty(taskFilePath) require.NoError(t, err, "Could not read distro taskfile") for _, task := range tc.wantTasks { - require.Containsf(t, out, task, "Distro should have received a %s task", task) + assert.Containsf(t, out, task, "Distro should have received a %s task", task) } for _, task := range tc.unwantedTasks { - require.NotContainsf(t, out, task, "Distro should have received a %s task", task) + assert.NotContainsf(t, out, task, "Distro should have received a %s task", task) } }) }