@@ -191,26 +191,26 @@ module.exports = async function (settings = {}, config = {}) {
191191 }
192192
193193 // Unassigned devices
194- await factory . createDevice ( { name : 'team2-unassigned-device' , type : 'type2' } , team2 )
195- await factory . createDevice ( { name : 'team2-unassigned-device-bulk-test-1' , type : 'type2' } , team2 )
194+ await factory . createDevice ( { name : 'team2-unassigned-device' , type : 'type2' , lastSeenAt : Date . now ( ) } , team2 )
195+ await factory . createDevice ( { name : 'team2-unassigned-device-bulk-test-1' , type : 'type2' , lastSeenAt : Date . now ( ) } , team2 )
196196
197197 // Application and Instances
198198 const application2 = await factory . createApplication ( { name : 'application-2' } , team2 , stack , template , projectType )
199199 await factory . createInstance ( { name : 'instance-2-1' } , application2 , stack , template , projectType )
200200
201201 const instanceWithDevices = await factory . createInstance ( { name : 'instance-2-with-devices' } , application2 , stack , template , projectType , { start : false } )
202- await factory . createDevice ( { name : 'assigned-device-a' , type : 'type2' } , team2 , instanceWithDevices )
203- await factory . createDevice ( { name : 'assigned-device-b' , type : 'type2' } , team2 , instanceWithDevices )
204- await factory . createDevice ( { name : 'assigned-device-c' , type : 'type2' } , team2 , instanceWithDevices )
205- await factory . createDevice ( { name : 'assigned-device-d-bulk-test-2' , type : 'type2' } , team2 , instanceWithDevices )
202+ await factory . createDevice ( { name : 'assigned-device-a' , type : 'type2' , lastSeenAt : Date . now ( ) } , team2 , instanceWithDevices )
203+ await factory . createDevice ( { name : 'assigned-device-b' , type : 'type2' , lastSeenAt : Date . now ( ) } , team2 , instanceWithDevices )
204+ await factory . createDevice ( { name : 'assigned-device-c' , type : 'type2' , lastSeenAt : Date . now ( ) } , team2 , instanceWithDevices )
205+ await factory . createDevice ( { name : 'assigned-device-d-bulk-test-2' , type : 'type2' , lastSeenAt : Date . now ( ) } , team2 , instanceWithDevices )
206206 await factory . createSnapshot ( { name : 'snapshot 1' } , instanceWithDevices , userBob )
207207 await factory . createSnapshot ( { name : 'snapshot 2' } , instanceWithDevices , userBob )
208208 await factory . createSnapshot ( { name : 'snapshot 3' } , instanceWithDevices , userBob )
209209
210210 // create devices bound to application directly
211- const deviceA = await factory . createDevice ( { name : 'application-device-a' , type : 'type2' } , team2 , null , application2 )
212- const deviceB = await factory . createDevice ( { name : 'application-device-b' , type : 'type2' } , team2 , null , application2 )
213- await factory . createDevice ( { name : 'application-device-c-bulk-test-3' , type : 'type2' } , team2 , null , application2 )
211+ const deviceA = await factory . createDevice ( { name : 'application-device-a' , type : 'type2' , lastSeenAt : Date . now ( ) } , team2 , null , application2 )
212+ const deviceB = await factory . createDevice ( { name : 'application-device-b' , type : 'type2' , lastSeenAt : Date . now ( ) } , team2 , null , application2 )
213+ await factory . createDevice ( { name : 'application-device-c-bulk-test-3' , type : 'type2' , lastSeenAt : Date . now ( ) } , team2 , null , application2 )
214214
215215 // create a device group and add deviceB to it
216216 const deviceGroupA = await factory . createApplicationDeviceGroup ( { name : 'application-device-group-a' } , application2 )
0 commit comments