Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): remove the "some requests are slow" warning #11771

Openmaria-rckswants to merge 10 commits intomain fromrefs/pull/11771/headopened View on GitHub

Showing 9 changed files with 0 additions and 15 deletions (loading 6).

x
0 of 9 viewed, 9 left
0 additions and 5 deletionsapps/web/src/components/ChatView.browser.test.tsxModified
View file
@@ -31,11 +31,6 @@
return { ...actual, layer: Layer.succeed(actual.ConnectionDriver, fakeDriver) };
});
​
-vi.mock(import("~/rpc/requestLatencyState"), async (original) => ({
- ...(await original()),
- trackRpcRequestSent: () => {},
-}));
-​
it("a new draft does not load its reserved thread before the server lists it", async () => {
using _environment = installFakeEnvironment([]);
using fetchSpy = vi.spyOn(globalThis, "fetch");
0 additions and 5 deletionsapps/web/src/components/ChatView.modelPick.browser.test.tsxModified
View file
@@ -29,11 +29,6 @@
return { ...actual, layer: Layer.succeed(actual.ConnectionDriver, fakeDriver) };
});
​
-vi.mock(import("~/rpc/requestLatencyState"), async (original) => ({
- ...(await original()),
- trackRpcRequestSent: () => {},
-}));
-​
// Its own file: the app's shell subscription outlives a test, and it must list this thread.
it("a model picked for an existing thread reaches the server before any message is sent", async () => {
const thread = threadWithHistory("thread-model-pick", 1);