smartrent / jackalope

An opinionated MQTT client library based on Tortoise MQTT
Apache License 2.0
28 stars 5 forks source link

Add some integration tests #20

Closed gausby closed 3 years ago

gausby commented 3 years ago

Add some integration tests; this is kind of hard to get right, and it seems that the tests might be a bit…flickering—which are not my favourite kinds of tests, but at least they exercise the system.

gausby commented 3 years ago

Right now I got tests for subscribing, unsubscribing, and publishing—I wanna make some tests for incoming messages as well; have to think a bit about that—because as previously mentioned, the callback handler is stateless, so I cannot do my usual trick where I store the pid of the test process in the test handler state…because I got no state :)

I'll figure it out !