perf : better concurrent handle
This commit is contained in:
@@ -17,7 +17,7 @@ describe("production deployment contract", () => {
|
||||
expect(deployment).toContain("path: /api/health");
|
||||
expect(deployment).toContain("kubernetes.io/arch: arm64");
|
||||
expect(deployment).toMatch(
|
||||
/requests:\s+cpu: 500m\s+memory: 512Mi\s+limits:\s+cpu: "1"\s+memory: 1Gi/u,
|
||||
/requests:\s+cpu: 500m\s+memory: 1Gi\s+limits:\s+cpu: "1"\s+memory: 2Gi/u,
|
||||
);
|
||||
expect(deployment).toContain("runAsNonRoot: true");
|
||||
expect(deployment).toContain("runAsUser: 1000");
|
||||
@@ -53,6 +53,8 @@ describe("production deployment contract", () => {
|
||||
expect(hpa).toContain("minReplicas: 2");
|
||||
expect(hpa).toContain("maxReplicas: 6");
|
||||
expect(hpa).toContain("averageUtilization: 70");
|
||||
expect(hpa).toContain("name: memory");
|
||||
expect(hpa).toContain("averageUtilization: 75");
|
||||
expect(pdb).toContain("minAvailable: 1");
|
||||
});
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ describe("public rendering performance", () => {
|
||||
'fetchPriority={index === 0 ? "high" : undefined}',
|
||||
);
|
||||
expect(directory).not.toContain("preload={index === 0}");
|
||||
expect(directory).toContain("prefetch={false}");
|
||||
});
|
||||
|
||||
it("publishes a public-only crawler policy", () => {
|
||||
|
||||
Reference in New Issue
Block a user