mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-14 10:52:17 +03:00
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:
committed by
GitHub
parent
a81895847d
commit
700a735949
@@ -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).
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user