Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
api/monitor: test buffer workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Volosatovs committed Jan 16, 2017
1 parent 1e86fc5 commit 3be2ef3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/monitor/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func TestClient(t *testing.T) {
}

// After which statuses will get dropped
gtw.SendStatus(&gateway.Status{})
err = gtw.SendStatus(&gateway.Status{})
a.So(err, ShouldNotBeNil)

Expand Down Expand Up @@ -110,6 +111,7 @@ func TestClient(t *testing.T) {
}

// After which messages will get dropped
gtw.SendUplink(&router.UplinkMessage{})
err = gtw.SendUplink(&router.UplinkMessage{})
a.So(err, ShouldNotBeNil)

Expand Down Expand Up @@ -143,6 +145,7 @@ func TestClient(t *testing.T) {
}

// After which messages will get dropped
gtw.SendDownlink(&router.DownlinkMessage{})
err = gtw.SendDownlink(&router.DownlinkMessage{})
a.So(err, ShouldNotBeNil)

Expand Down Expand Up @@ -173,6 +176,7 @@ func TestClient(t *testing.T) {
}

// After which messages will get dropped
client.BrokerClient.SendUplink(&broker.DeduplicatedUplinkMessage{})
err = client.BrokerClient.SendUplink(&broker.DeduplicatedUplinkMessage{})
a.So(err, ShouldNotBeNil)

Expand Down Expand Up @@ -203,6 +207,7 @@ func TestClient(t *testing.T) {
}

// After which messages will get dropped
client.BrokerClient.SendDownlink(&broker.DownlinkMessage{})
err = client.BrokerClient.SendDownlink(&broker.DownlinkMessage{})
a.So(err, ShouldNotBeNil)

Expand Down

0 comments on commit 3be2ef3

Please sign in to comment.