Skip to content

Commit

Permalink
Minor changes to test case
Browse files Browse the repository at this point in the history
  • Loading branch information
rylorin committed Oct 23, 2023
1 parent e2f2415 commit 47f74cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/tests/unit/api-next/subscription-registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ describe("Subscription registry Tests", () => {
next: (data) => {
console.log(data);
},
complete: () => {
console.log("getOpenOrders completed.");
done();
},
error: (err: IBApiNextError) => {
console.error(`getOpenOrders failed with '${err.error.message}'`);
},
Expand All @@ -58,7 +62,7 @@ describe("Subscription registry Tests", () => {
.getAllOpenOrders()
.then((orders) => {
console.log(orders);
done();
subscription$.unsubscribe();
})
.catch((err: IBApiNextError) => {
console.error(`getAllOpenOrders failed with '${err}'`);
Expand Down
2 changes: 1 addition & 1 deletion src/tests/unit/api/connect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { EventName } from "../../../api/data/enum/event-name";
import configuration from "../../../common/configuration";

describe("IBApi connection Tests", () => {
jest.setTimeout(10000);
jest.setTimeout(5 * 1000);

let ib: IBApi;
const clientId = Math.floor(Math.random() * 32766) + 1; // ensure unique client
Expand Down

0 comments on commit 47f74cb

Please sign in to comment.