Tests: set device state to inizialized before assuming fw version gets written to attributes
This commit is contained in:
parent
0cf3625304
commit
a936ff0616
|
@ -178,6 +178,8 @@ public class EntitiesTest extends TestBase {
|
||||||
public void testDeviceAttributes() throws Exception {
|
public void testDeviceAttributes() throws Exception {
|
||||||
GBDevice dummyGBDevice = createDummyGDevice("00:00:00:00:02");
|
GBDevice dummyGBDevice = createDummyGDevice("00:00:00:00:02");
|
||||||
dummyGBDevice.setFirmwareVersion("1.0");
|
dummyGBDevice.setFirmwareVersion("1.0");
|
||||||
|
dummyGBDevice.setState(GBDevice.State.INITIALIZED);
|
||||||
|
|
||||||
Device deviceOld = DBHelper.getDevice(dummyGBDevice, daoSession);
|
Device deviceOld = DBHelper.getDevice(dummyGBDevice, daoSession);
|
||||||
assertNotNull(deviceOld);
|
assertNotNull(deviceOld);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue