Chore: Fix broken anonymous devices test (#81649)

This commit is contained in:
Alexander Zobnin
2024-01-31 18:09:32 +03:00
committed by GitHub
parent 7319a75110
commit b4d363e8fe

View File

@@ -206,6 +206,8 @@ func TestIntegrationDeviceService_SearchDevice(t *testing.T) {
Query: "", Query: "",
Page: 1, Page: 1,
Limit: 1, Limit: 1,
From: fixedTime,
To: fixedTime.Add(1 * time.Hour),
}, },
expectedCount: 1, expectedCount: 1,
}, },
@@ -227,6 +229,8 @@ func TestIntegrationDeviceService_SearchDevice(t *testing.T) {
Query: "192.1", Query: "192.1",
Page: 1, Page: 1,
Limit: 50, Limit: 50,
From: fixedTime,
To: fixedTime.Add(1 * time.Hour),
}, },
expectedCount: 1, expectedCount: 1,
expectedDevice: &anonstore.Device{ expectedDevice: &anonstore.Device{