Skip to content

Commit

Permalink
Go fmt on project.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwood committed Apr 16, 2020
1 parent 299e6b5 commit 0d7a4de
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions network_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func Test_NetworkManager(t *testing.T) {
SourceAddress: zigbee.NetworkAddress(0x1000),
NetworkAddress: zigbee.NetworkAddress(0x2000),
IEEEAddress: zigbee.IEEEAddress(0x0102030405060708),
Capabilities: ZdoEndDeviceAnnceIndCapabilities{
Capabilities: ZdoEndDeviceAnnceIndCapabilities{
AltPANController: false,
Router: true,
PowerSource: false,
Expand Down Expand Up @@ -342,9 +342,9 @@ func Test_NetworkManager(t *testing.T) {
RxOnWhenIdle: 0,
DeviceType: zigbee.Router,
},
PermitJoining: false,
Depth: 1,
LQI: 67,
PermitJoining: false,
Depth: 1,
LQI: 67,
},
},
}
Expand Down Expand Up @@ -403,9 +403,9 @@ func Test_NetworkManager(t *testing.T) {
RxOnWhenIdle: 0,
DeviceType: zigbee.Router,
},
PermitJoining: false,
Depth: 0,
LQI: 67,
PermitJoining: false,
Depth: 0,
LQI: 67,
},
},
}
Expand Down Expand Up @@ -461,9 +461,9 @@ func Test_NetworkManager(t *testing.T) {
RxOnWhenIdle: 0,
DeviceType: zigbee.Router,
},
PermitJoining: false,
Depth: 0,
LQI: 67,
PermitJoining: false,
Depth: 0,
LQI: 67,
},
},
}
Expand All @@ -484,7 +484,7 @@ func Test_NetworkManager(t *testing.T) {
})

t.Run("updates to the node table sends a node update event", func(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 50 * time.Millisecond)
ctx, cancel := context.WithTimeout(context.Background(), 50*time.Millisecond)
defer cancel()

unpiMock := unpiTest.NewMockAdapter()
Expand Down
8 changes: 4 additions & 4 deletions node_send_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func Test_SendNodeMessage(t *testing.T) {

sentFrame := c.CapturedCalls[0].Frame

assert.Equal(t, []byte{ 0x00, 0x10, 0x04, 0x03, 0x00, 0x20, 0x00, 0x10, 0x20, 0x02, 0x0a, 0x0b}, sentFrame.Payload)
assert.Equal(t, []byte{0x00, 0x10, 0x04, 0x03, 0x00, 0x20, 0x00, 0x10, 0x20, 0x02, 0x0a, 0x0b}, sentFrame.Payload)
})
}

Expand All @@ -65,13 +65,13 @@ func Test_SendMessages(t *testing.T) {
SourceEndpoint: 0x04,
ClusterID: 0x0506,
TransactionID: 0x07,
Options: AfDataRequestOptions{
Options: AfDataRequestOptions{
EnableSecurity: true,
DiscoveryRoute: true,
ACKRequest: true,
},
Radius: 0x09,
Data: []byte{0x0a, 0x0b},
Radius: 0x09,
Data: []byte{0x0a, 0x0b},
}

data, err := bytecodec.Marshal(req)
Expand Down

0 comments on commit 0d7a4de

Please sign in to comment.