From 4a4a31f4a942c88334d38137bdc34958185eeca2 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Wed, 10 Jul 2024 19:18:37 +0200 Subject: [PATCH] test: skip mbus tests under windows --- packages/binding-mbus/test/mbus-client-test.ts | 12 ++++++++++-- packages/binding-mbus/test/mbus-connection-test.ts | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/packages/binding-mbus/test/mbus-client-test.ts b/packages/binding-mbus/test/mbus-client-test.ts index 7657b23e3..114a464ed 100644 --- a/packages/binding-mbus/test/mbus-client-test.ts +++ b/packages/binding-mbus/test/mbus-client-test.ts @@ -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, @@ -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, diff --git a/packages/binding-mbus/test/mbus-connection-test.ts b/packages/binding-mbus/test/mbus-connection-test.ts index 74b9564e6..87103df84 100644 --- a/packages/binding-mbus/test/mbus-connection-test.ts +++ b/packages/binding-mbus/test/mbus-connection-test.ts @@ -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, @@ -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,