From 222daaf645c415940633a3abe3f435bbeaddc496 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 3 May 2026 21:46:55 +0800 Subject: [PATCH] fix(tests): update provider key handling in TestOwnerPrefixedIDs - Modified the TestOwnerPrefixedIDs test to use ScopedKey for provider key generation, ensuring unique keys based on owner context. - This change enhances the accuracy of tests related to provider management by preventing key collisions during test execution. --- llmprovider/registry_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llmprovider/registry_test.go b/llmprovider/registry_test.go index 24aa7317..9f3ec96b 100644 --- a/llmprovider/registry_test.go +++ b/llmprovider/registry_test.go @@ -615,8 +615,9 @@ func TestOwnerPrefixedIDs(t *testing.T) { for _, tc := range cases { t.Run(tc.key, func(t *testing.T) { + scopedKey := llmprovider.ScopedKey(&tc.owner, tc.key) p := llmprovider.Provider{ - Key: tc.key, + Key: scopedKey, Name: tc.key, Type: "openai", APIURL: "https://api.openai.com",