1
0
mirror of https://github.com/go-mqtt/mqtt.git synced 2025-08-07 11:42:52 +03:00

Missed some with the last commit.

This commit is contained in:
Pascal S. de Kloe
2021-02-03 21:32:19 +01:00
parent b36ae7316e
commit 917669d69f
2 changed files with 3 additions and 3 deletions

View File

@@ -168,7 +168,7 @@ func main() {
switch {
case err == nil, errors.Is(err, mqtt.ErrClosed), errors.Is(err, mqtt.ErrDown):
return // OK
case errors.Is(err, mqtt.ErrAbort):
case errors.Is(err, mqtt.ErrAbandon):
log.Fatal(name, ": subscribe timeout")
fallthrough
@@ -189,7 +189,7 @@ func main() {
break // OK
case errors.Is(err, mqtt.ErrClosed), errors.Is(err, mqtt.ErrDown):
return
case errors.Is(err, mqtt.ErrAbort):
case errors.Is(err, mqtt.ErrAbandon):
log.Print(name, ": ping timeout")
fallthrough

View File

@@ -162,7 +162,7 @@ func TestSubscribe(t *testing.T) {
2, // max QOS
}))
sendPacketHex(t, conn, "900440000102") // SUBACK
sendPacketHex(t, conn, "900460000102") // SUBACK
}
func TestPublish(t *testing.T) {