Skip to content

Commit 824a842

Browse files
committed
update tests for custom auth
1 parent fd13a36 commit 824a842

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

test/test_mqtt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,8 @@ def sign_function(transform_args, **kwargs):
761761
username=input_username,
762762
password=input_password,
763763
use_websockets=True,
764-
websocket_handshake_transform=sign_function)
764+
websocket_handshake_transform=sign_function,
765+
enable_metrics=False)
765766
connection.connect().result(TIMEOUT)
766767
connection.disconnect().result(TIMEOUT)
767768

test/test_mqtt5.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ def _test_direct_connect_basic_auth(self):
229229
client_options = mqtt5.ClientOptions(
230230
host_name=input_host_name,
231231
port=input_port,
232-
connect_options=connect_options
232+
connect_options=connect_options,
233+
enable_metrics=False
233234
)
234235
callbacks = Mqtt5TestCallbacks()
235236
client = self._create_client(client_options=client_options, callbacks=callbacks)
@@ -411,7 +412,8 @@ def _test_websocket_connect_basic_auth(self):
411412
connect_options = mqtt5.ConnectPacket(
412413
client_id=create_client_id(),
413414
username=input_username,
414-
password=input_password
415+
password=input_password,
416+
enable_metrics=False
415417
)
416418
client_options = mqtt5.ClientOptions(
417419
host_name=input_host_name,

0 commit comments

Comments
 (0)