Skip to content

Commit

Permalink
fix another os test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-conway committed Oct 5, 2023
1 parent f0a914e commit 5a315f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/js/node/os/os.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ it("totalmem", () => {
});

it("getPriority", () => {
expect(os.getPriority()).toBe(0);
expect(os.getPriority(0)).toBe(0);
var prio = os.getPriority();
expect(-20 <= prio && prio <= 20).toBe(true);
prio = os.getPriority(0);
expect(-20 <= prio && prio <= 20).toBe(true);
});

it("setPriority", () => {
Expand Down

0 comments on commit 5a315f4

Please sign in to comment.