Skip to content

Commit a306cdd

Browse files
committed
Fix tests after updating dependencies.
1 parent 1f39414 commit a306cdd

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

internal/backend/basicstation/structs/join_request_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func TestJoinRequestToProto(t *testing.T) {
6161
},
6262
RxInfo: &gw.UplinkRxInfo{
6363
GatewayId: "0102030405060708",
64-
Time: pTime,
64+
GwTime: pTime,
6565
TimeSinceGpsEpoch: durationpb.New(5 * time.Second),
6666
Rssi: 120,
6767
Snr: 5.5,

internal/backend/basicstation/structs/radio_meta_data_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func TestSetRadioMetaDataToProto(t *testing.T) {
121121
Snr: 5.5,
122122
Context: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
123123
TimeSinceGpsEpoch: durationpb.New(5 * time.Second),
124-
Time: timeP,
124+
GwTime: timeP,
125125
CrcStatus: gw.CRCStatus_CRC_OK,
126126
},
127127
},

internal/backend/semtechudp/backend_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ func (ts *BackendTestSuite) TestPushData() {
767767
},
768768
RxInfo: &gw.UplinkRxInfo{
769769
GatewayId: "0102030405060708",
770-
Time: nowPB,
770+
GwTime: nowPB,
771771
TimeSinceGpsEpoch: durationpb.New(time.Second),
772772
Rssi: -51,
773773
Snr: 7,

internal/backend/semtechudp/packets/push_data_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func TestGetUplinkFrame(t *testing.T) {
262262
},
263263
RxInfo: &gw.UplinkRxInfo{
264264
GatewayId: "0102030405060708",
265-
Time: pbTime,
265+
GwTime: pbTime,
266266
TimeSinceGpsEpoch: durationpb.New(10 * time.Minute),
267267
Rssi: -60,
268268
Snr: 5.5,
@@ -337,7 +337,7 @@ func TestGetUplinkFrame(t *testing.T) {
337337
},
338338
RxInfo: &gw.UplinkRxInfo{
339339
GatewayId: "0102030405060708",
340-
Time: pbTime,
340+
GwTime: pbTime,
341341
TimeSinceGpsEpoch: durationpb.New(10 * time.Minute),
342342
Rssi: -70,
343343
Snr: 6.6,
@@ -366,7 +366,7 @@ func TestGetUplinkFrame(t *testing.T) {
366366
},
367367
RxInfo: &gw.UplinkRxInfo{
368368
GatewayId: "0102030405060708",
369-
Time: pbTime,
369+
GwTime: pbTime,
370370
TimeSinceGpsEpoch: durationpb.New(10 * time.Minute),
371371
Rssi: -80,
372372
Snr: 7.7,
@@ -476,7 +476,7 @@ func TestGetUplinkFrame(t *testing.T) {
476476
},
477477
RxInfo: &gw.UplinkRxInfo{
478478
GatewayId: "0102030405060708",
479-
Time: pbTime,
479+
GwTime: pbTime,
480480
TimeSinceGpsEpoch: durationpb.New(10 * time.Minute),
481481
FineTimeSinceGpsEpoch: ft,
482482
Rssi: -60,
@@ -538,7 +538,7 @@ func TestGetUplinkFrame(t *testing.T) {
538538
},
539539
RxInfo: &gw.UplinkRxInfo{
540540
GatewayId: "0102030405060708",
541-
Time: pbTime,
541+
GwTime: pbTime,
542542
Rssi: -60,
543543
Snr: 5.5,
544544
Channel: 1,
@@ -603,7 +603,7 @@ func TestGetUplinkFrame(t *testing.T) {
603603
},
604604
RxInfo: &gw.UplinkRxInfo{
605605
GatewayId: "0102030405060708",
606-
Time: pbTime,
606+
GwTime: pbTime,
607607
Rssi: -60,
608608
Snr: 5.5,
609609
Channel: 1,

0 commit comments

Comments
 (0)