From e825e6820389fab7c97ae3665155401124ab8ecf Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Wed, 24 Jun 2020 23:21:32 +0100 Subject: make Client an interface, make Message a plain struct --- catbus_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'catbus_test.go') diff --git a/catbus_test.go b/catbus_test.go index cc22ebb..b345c48 100644 --- a/catbus_test.go +++ b/catbus_test.go @@ -105,7 +105,7 @@ func TestOnConnect(t *testing.T) { payloadByTopic: map[string]string{}, } - catbus := &Client{ + catbus := &client{ mqtt: fakeMQTT, payloadByTopic: map[string]string{}, onconnectTimerByTopic: map[string]*time.Timer{}, @@ -117,7 +117,7 @@ func TestOnConnect(t *testing.T) { } for _, topic := range tt.subscribe { - catbus.Subscribe(topic, func(_ *Client, _ Message) {}) + catbus.Subscribe(topic, func(_ Client, _ Message) {}) } for topic, message := range tt.receive { fakeMQTT.send(topic, message.retention, message.payload) -- cgit v1.2.3