From 700a7359498c3e7f451e55092c2ae7dd8dffc6cd Mon Sep 17 00:00:00 2001 From: Diego Rodrigues de Sa e Souza Date: Fri, 28 Aug 2026 04:42:14 -0300 Subject: [PATCH] fix(tests): await async getExecutor() in gemini-web-image-retirement test (#11868) Direct follow-up fixing a bug my own /merge-batch process introduced. Test-only change, focused test passing. --- .../11708-gemini-web-retirement-test-async-getexecutor.md | 1 + tests/unit/gemini-web-image-retirement.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelog.d/fixes/11708-gemini-web-retirement-test-async-getexecutor.md diff --git a/changelog.d/fixes/11708-gemini-web-retirement-test-async-getexecutor.md b/changelog.d/fixes/11708-gemini-web-retirement-test-async-getexecutor.md new file mode 100644 index 0000000000..1e471f1084 --- /dev/null +++ b/changelog.d/fixes/11708-gemini-web-retirement-test-async-getexecutor.md @@ -0,0 +1 @@ +- **fix(tests):** the new Gemini Web Images retirement test (#11708) called the now-async `getExecutor()` synchronously, throwing `TypeError: getExecutor(...).getProvider is not a function` instead of asserting Gemini Web chat stays available. Awaited to match the R0.3 executor-registry refactor (#11220). diff --git a/tests/unit/gemini-web-image-retirement.test.ts b/tests/unit/gemini-web-image-retirement.test.ts index 1e4e36ded9..c5b3917c07 100644 --- a/tests/unit/gemini-web-image-retirement.test.ts +++ b/tests/unit/gemini-web-image-retirement.test.ts @@ -111,9 +111,9 @@ test("Gemini Web image-only parser and handler artifacts are retired", () => { ); }); -test("Gemini Web chat and legitimate Gemini image providers remain available", () => { +test("Gemini Web chat and legitimate Gemini image providers remain available", async () => { assert.equal(hasSpecializedExecutor("gemini-web"), true); - assert.equal(getExecutor("gemini-web").getProvider(), "gemini-web"); + assert.equal((await getExecutor("gemini-web")).getProvider(), "gemini-web"); assert.equal(REGISTRY["gemini-web"]?.executor, "gemini-web"); assert.deepEqual( REGISTRY["gemini-web"]?.models.map(({ id }) => id),