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.
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-08-28 04:42:14 -03:00
committed by GitHub
parent a81895847d
commit 700a735949
2 changed files with 3 additions and 2 deletions

View File

@@ -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).

View File

@@ -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),