eclipse / paho.mqtt.testing

An Eclipse Paho project - a Python broker for testing
https://eclipse.org/paho
Other
108 stars 73 forks source link

Tests in client_test.py cannot run independently #8

Closed jpwsutton closed 8 years ago

jpwsutton commented 8 years ago

migrated from Bugzilla #430566 status RESOLVED severity normal in component MQTT Interop Tests for --- Reported in version unspecified on platform PC Assigned to: Ian Craggs

On 2014-03-17 19:35:25 -0400, Andy Piper wrote:

The tests to run through in client_tests.py are defined in an array:

e.g. tests = [basic_test, retained_message_test, offline_message_queueing_test, will_message_test, overlapping_subscriptions_test, keepalive_test, redelivery_on_reconnect_test]

Unfortunately, it is not possible to run any of them individually without previously including basic_test which initialises aclient

NameError: global name 'aclient' is not defined

We should move the aclient/bclient initialisation into a global initialiser so that individual tests can be executed.

On 2014-03-23 08:24:18 -0400, Ian Craggs wrote:

Fixed