test: tighten runtime auth fallback warning assertion

This commit is contained in:
Shakker
2026-05-11 01:33:11 +01:00
parent 34e34cd107
commit 07d1c4cd41

View File

@@ -494,9 +494,7 @@ describe("createEmbeddedRunAuthController", () => {
expect(setRuntimeApiKey).toHaveBeenCalledWith("custom-openai", "__aws_sdk_auth__");
expect(harness.runtimeAuthState).toBeNull();
expect(warn).toHaveBeenCalledWith(
expect.stringContaining(
"prepareProviderRuntimeAuth failed for custom-openai, falling back to sentinel: No runtime auth plugin",
),
"prepareProviderRuntimeAuth failed for custom-openai, falling back to sentinel: No runtime auth plugin",
);
});
});