mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 16:18:26 +00:00
test(core): trim redundant test resets and use mockClear
This commit is contained in:
@@ -91,7 +91,7 @@ describe("ports helpers", () => {
|
||||
|
||||
describeUnix("inspectPortUsage", () => {
|
||||
beforeEach(() => {
|
||||
runCommandWithTimeoutMock.mockReset();
|
||||
runCommandWithTimeoutMock.mockClear();
|
||||
});
|
||||
|
||||
it("reports busy when lsof is missing but loopback listener exists", async () => {
|
||||
|
||||
@@ -17,7 +17,7 @@ afterEach(() => {
|
||||
envSnapshot.restore();
|
||||
process.argv = [...originalArgv];
|
||||
process.execArgv = [...originalExecArgv];
|
||||
spawnMock.mockReset();
|
||||
spawnMock.mockClear();
|
||||
});
|
||||
|
||||
function clearSupervisorHints() {
|
||||
|
||||
Reference in New Issue
Block a user