Skip to content

Commit fac742f

Browse files
committed
fix(discord): remove unnecessary type assertion in bound test
1 parent b9b51fb commit fac742f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

extensions/discord/src/api.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Discord tests cover api plugin behavior.
22
import { createServer, type Server } from "node:http";
3-
import type { AddressInfo } from "node:net";
43
import { MAX_TIMER_TIMEOUT_MS } from "openclaw/plugin-sdk/number-runtime";
54
import { withFetchPreconnect } from "openclaw/plugin-sdk/test-env";
65
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
@@ -41,7 +40,7 @@ async function listenLoopbackServer(server: Server): Promise<number> {
4140
reject(new Error("expected loopback TCP address"));
4241
return;
4342
}
44-
resolve((address as AddressInfo).port);
43+
resolve(address.port);
4544
});
4645
});
4746
}

0 commit comments

Comments
 (0)