Skip to content

Commit

Permalink
test: skip mbus tests under windows
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jul 10, 2024
1 parent 45f903b commit 4a4a31f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions packages/binding-mbus/test/mbus-client-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ describe("mbus client test", () => {
/* nothing */
});

it("should override form values with URL", () => {
it("should override form values with URL", function () {
if (process.platform === "win32") {
this.skip();
}

const form: MBusForm = {
href: "mbus+tcp://127.0.0.1:805/2?offset=2&timeout=5",
"mbus:offset": 0,
Expand All @@ -69,7 +73,11 @@ describe("mbus client test", () => {
});

describe("read resource", () => {
it("should throw exception for missing offset", () => {
it("should throw exception for missing offset", function () {
if (process.platform === "win32") {
this.skip();
}

const form: MBusForm = {
href: "mbus+tcp://127.0.0.1:805",
"mbus:unitID": 1,
Expand Down
12 changes: 10 additions & 2 deletions packages/binding-mbus/test/mbus-connection-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ describe("mbus connection test", () => {
/* nothing */
});

it("should throw for timeout", () => {
it("should throw for timeout", function () {
if (process.platform === "win32") {
this.skip();
}

const connection = new MBusConnection("127.0.0.1", 806, {
connectionTimeout: 200,
connectionRetryTime: 10,
Expand All @@ -41,7 +45,11 @@ describe("mbus connection test", () => {
}).timeout(10000);

describe("Operation", () => {
it("should throw with timeout", async () => {
it("should throw with timeout", async function () {
if (process.platform === "win32") {
this.skip();
}

const form: MBusForm = {
href: "mbus+tcp://127.0.0.1:806",
"mbus:offset": 0,
Expand Down

0 comments on commit 4a4a31f

Please sign in to comment.