Skip to content

Commit 18b390c

Browse files
authored
Update error message for feed key validation test
1 parent 1e5c325 commit 18b390c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_mqtt_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def test_feed_key_too_long(self):
159159
long_key = 'a' * 129
160160
with self.assertRaises(ValueError) as context:
161161
validate_feed_key(long_key)
162-
self.assertIn('less than 128 characters', str(context.exception))
162+
self.assertIn('128 characters or less', str(context.exception))
163163

164164
def test_feed_key_invalid_characters(self):
165165
"""Test that feed keys with invalid characters raise TypeError."""
@@ -243,4 +243,4 @@ def test_receive_with_invalid_feed_key(self):
243243
"""Test that receive() raises TypeError with invalid feed key."""
244244
client = MQTTClient('testuser', 'testkey')
245245
with self.assertRaises(TypeError):
246-
client.receive('test@feed')
246+
client.receive('test@feed')

0 commit comments

Comments
 (0)