From 2e881c77b418040dc9a9cc940cf30ec4a00467b7 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Mon, 19 Jun 2017 23:16:58 -0600 Subject: [PATCH] Fixed paho-mqtt test --- types/paho-mqtt/paho-mqtt-tests.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/types/paho-mqtt/paho-mqtt-tests.ts b/types/paho-mqtt/paho-mqtt-tests.ts index 5af9969f42..a1de88f318 100644 --- a/types/paho-mqtt/paho-mqtt-tests.ts +++ b/types/paho-mqtt/paho-mqtt-tests.ts @@ -81,10 +81,9 @@ client.unsubscribe("test/topic", { client.send("test/topic2", "hello world!", 0, true); client.send("test/topic3", "hello world 2!", 1); -client.send("test/topic4", new ArrayBuffer("hello world 3!")); -const msg = new Paho.MQTT.Message(new ArrayBuffer("hello world 4")); +client.send("test/topic4", new ArrayBuffer(3)); +const msg = new Paho.MQTT.Message(new ArrayBuffer(4)); msg.destinationName = "test/topic5"; msg.qos = 2; - client.disconnect();