Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
nana4rider committed Jan 27, 2025
1 parent a8a6081 commit 4d29c14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions __tests__/connector/BP35Connector.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,10 @@ describe("sendCommand", () => {
return false;
};

// dataPromiseのPromiseはタイムアウトまで残るため短めに設定
const actual = connector.sendCommand("SKTEST", undefined, 10);
const actual = connector.sendCommand("SKTEST", undefined);

await expect(actual).rejects.toThrow();

emitText(mockPort, "OK"); // pEventを終了させるため
});
});

0 comments on commit 4d29c14

Please sign in to comment.