Skip to content

Commit

Permalink
Fix tests after updating dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed Mar 11, 2024
1 parent 1f39414 commit a306cdd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion internal/backend/basicstation/structs/join_request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestJoinRequestToProto(t *testing.T) {
},
RxInfo: &gw.UplinkRxInfo{
GatewayId: "0102030405060708",
Time: pTime,
GwTime: pTime,
TimeSinceGpsEpoch: durationpb.New(5 * time.Second),
Rssi: 120,
Snr: 5.5,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func TestSetRadioMetaDataToProto(t *testing.T) {
Snr: 5.5,
Context: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
TimeSinceGpsEpoch: durationpb.New(5 * time.Second),
Time: timeP,
GwTime: timeP,
CrcStatus: gw.CRCStatus_CRC_OK,
},
},
Expand Down
2 changes: 1 addition & 1 deletion internal/backend/semtechudp/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ func (ts *BackendTestSuite) TestPushData() {
},
RxInfo: &gw.UplinkRxInfo{
GatewayId: "0102030405060708",
Time: nowPB,
GwTime: nowPB,
TimeSinceGpsEpoch: durationpb.New(time.Second),
Rssi: -51,
Snr: 7,
Expand Down
12 changes: 6 additions & 6 deletions internal/backend/semtechudp/packets/push_data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func TestGetUplinkFrame(t *testing.T) {
},
RxInfo: &gw.UplinkRxInfo{
GatewayId: "0102030405060708",
Time: pbTime,
GwTime: pbTime,
TimeSinceGpsEpoch: durationpb.New(10 * time.Minute),
Rssi: -60,
Snr: 5.5,
Expand Down Expand Up @@ -337,7 +337,7 @@ func TestGetUplinkFrame(t *testing.T) {
},
RxInfo: &gw.UplinkRxInfo{
GatewayId: "0102030405060708",
Time: pbTime,
GwTime: pbTime,
TimeSinceGpsEpoch: durationpb.New(10 * time.Minute),
Rssi: -70,
Snr: 6.6,
Expand Down Expand Up @@ -366,7 +366,7 @@ func TestGetUplinkFrame(t *testing.T) {
},
RxInfo: &gw.UplinkRxInfo{
GatewayId: "0102030405060708",
Time: pbTime,
GwTime: pbTime,
TimeSinceGpsEpoch: durationpb.New(10 * time.Minute),
Rssi: -80,
Snr: 7.7,
Expand Down Expand Up @@ -476,7 +476,7 @@ func TestGetUplinkFrame(t *testing.T) {
},
RxInfo: &gw.UplinkRxInfo{
GatewayId: "0102030405060708",
Time: pbTime,
GwTime: pbTime,
TimeSinceGpsEpoch: durationpb.New(10 * time.Minute),
FineTimeSinceGpsEpoch: ft,
Rssi: -60,
Expand Down Expand Up @@ -538,7 +538,7 @@ func TestGetUplinkFrame(t *testing.T) {
},
RxInfo: &gw.UplinkRxInfo{
GatewayId: "0102030405060708",
Time: pbTime,
GwTime: pbTime,
Rssi: -60,
Snr: 5.5,
Channel: 1,
Expand Down Expand Up @@ -603,7 +603,7 @@ func TestGetUplinkFrame(t *testing.T) {
},
RxInfo: &gw.UplinkRxInfo{
GatewayId: "0102030405060708",
Time: pbTime,
GwTime: pbTime,
Rssi: -60,
Snr: 5.5,
Channel: 1,
Expand Down

0 comments on commit a306cdd

Please sign in to comment.