mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 22:30:43 +00:00
test: clear weak assertion scan
This commit is contained in:
@@ -246,7 +246,10 @@ describe("web auto-reply connection", () => {
|
||||
await vi.waitFor(
|
||||
() => {
|
||||
expect(scripted.getListenerCount()).toBe(1);
|
||||
expect(getActiveWebListener(accountId)).not.toBeNull();
|
||||
const activeListener = getActiveWebListener(accountId);
|
||||
if (!activeListener) {
|
||||
throw new Error("expected active WhatsApp web listener");
|
||||
}
|
||||
},
|
||||
{ timeout: 250, interval: 2 },
|
||||
);
|
||||
|
||||
@@ -37,7 +37,6 @@ function requireReadOnlyResolutionFinding(
|
||||
const finding = findings.find(
|
||||
(entry) => entry.checkId === "channels.zalouser.account.read_only_resolution",
|
||||
);
|
||||
expect(finding).toBeDefined();
|
||||
if (!finding) {
|
||||
throw new Error("Expected Zalo read-only resolution warning");
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ function requireFinding(
|
||||
findings: ReturnType<typeof collectExecRuntimeFindings>,
|
||||
) {
|
||||
const finding = findings.find((entry) => entry.checkId === checkId);
|
||||
expect(finding).toBeDefined();
|
||||
if (!finding) {
|
||||
throw new Error(`Expected ${checkId} finding`);
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@ function requireProbeAuthWarning(findings: ReturnType<typeof collectDeepProbeFin
|
||||
const warning = findings.find(
|
||||
(finding) => finding.checkId === "gateway.probe_auth_secretref_unavailable",
|
||||
);
|
||||
expect(warning).toBeDefined();
|
||||
if (!warning) {
|
||||
throw new Error("Expected gateway probe auth SecretRef warning");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user