We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parente0b9eb3 commit5427b61Copy full SHA for 5427b61
site/src/contexts/ProxyContext.test.tsx
@@ -26,7 +26,7 @@ import type * as ProxyLatency from "./useProxyLatency";
26
// here and not inside a unit test.
27
jest.mock("contexts/useProxyLatency",()=>({
28
useProxyLatency:()=>{
29
-return{proxyLatencies:hardCodedLatencies,refetch:jest.fn()};
+return{proxyLatencies:hardCodedLatencies,refetch:jest.fn(),loaded:true};
30
},
31
}));
32
@@ -261,11 +261,11 @@ describe("ProxyContextSelection", () => {
261
expUserProxyID:MockHealthyWildWorkspaceProxy.id,
262
263
],
264
-//Latency behavior is disabled, so theprimary should be selected.
+//First page load defers to theproxy by latency
265
[
266
"regions_default_low_latency",
267
{
268
-expProxyID:MockPrimaryWorkspaceProxy.id,
+expProxyID:MockHealthyWildWorkspaceProxy.id,
269
regions:MockWorkspaceProxies,
270
storageProxy:undefined,
271
latencies:{