<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Timers on Rusty Eddy</title><link>https://rustyeddy.com/tags/timers/</link><description>Recent content in Timers on Rusty Eddy</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 31 May 2026 11:09:14 -0700</lastBuildDate><atom:link href="https://rustyeddy.com/tags/timers/index.xml" rel="self" type="application/rss+xml"/><item><title>Using Go timers for MQTT testing</title><link>https://rustyeddy.com/notes/go-timers-testing-mqtt/</link><pubDate>Mon, 02 May 2022 00:00:00 +0000</pubDate><guid>https://rustyeddy.com/notes/go-timers-testing-mqtt/</guid><description>&lt;p&gt;This article uses a Go timer and the Go select statement to test our
MQTT publish and subscribe in a single simple test statement. A quick
note on the &lt;code&gt;go testing&lt;/code&gt; package: it is much like the JUnit where
tests using a particular naming convention &lt;code&gt;TestXXX(t *testing.T) {}&lt;/code&gt; will be run automatically with easy to reports having been
generated.&lt;/p&gt;
&lt;h2 id="the-problem"&gt;The Problem&lt;/h2&gt;
&lt;p&gt;The following code snippet is directly from the
&lt;a href="https://rustyeddy.com/iot/iot-edge-gateway/"&gt;IoTe&lt;/a&gt; edge gateway project. One of the
primary features of IoTe is the ability to send and receive MQTT
messages.&lt;/p&gt;</description></item></channel></rss>