Skip to content

Commit

Permalink
test: skip MQTT broker test on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Dec 4, 2023
1 parent 8761e64 commit 80afe18
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { expect, should } from "chai";
import MqttBrokerServer from "../src/mqtt-broker-server";
import MqttClientFactory from "../src/mqtt-client-factory";
import MqttsClientFactory from "../src/mqtts-client-factory";
import { platform } from "os";

const info = createInfoLogger("binding-mqtt", "mqtt-client-subscribe-test.integration");

Expand All @@ -45,7 +46,13 @@ describe("MQTT client implementation", () => {
await brokerServer.stop();
});

it("should expose via broker", (done: Mocha.Done) => {
it("should expose via broker", function (done: Mocha.Done) {
// Skip this test on macOS until the underlying issue is fixed,
// see https://github.com/eclipse-thingweb/node-wot/issues/1159
if (platform() === "darwin") {
this.skip();
}

brokerServer = new MqttBrokerServer({ uri: brokerUri, selfHost: true });
servient.addServer(brokerServer);

Expand Down

0 comments on commit 80afe18

Please sign in to comment.