From 8b20f4063c0c8fd3c77d47779465b9adcc39fd35 Mon Sep 17 00:00:00 2001 From: spacewander Date: Wed, 27 Nov 2024 10:52:25 +0800 Subject: [PATCH] fix Signed-off-by: spacewander --- api/pkg/plugins/plugins_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/pkg/plugins/plugins_test.go b/api/pkg/plugins/plugins_test.go index faba1071..103e6572 100644 --- a/api/pkg/plugins/plugins_test.go +++ b/api/pkg/plugins/plugins_test.go @@ -47,8 +47,7 @@ func TestIteratePluginType(t *testing.T) { return false }) assert.Equal(t, 1, len(names)) - assert.Contains(t, names, "test") - assert.NotContains(t, names, "test2") + // the order is not guaranteed, it can be "test" or "test2" } func TestIteratePlugin(t *testing.T) {