mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-03 17:02:13 +01:00
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 {
|
||||
GBDevice dummyGBDevice = createDummyGDevice("00:00:00:00:02");
|
||||
dummyGBDevice.setFirmwareVersion("1.0");
|
||||
dummyGBDevice.setState(GBDevice.State.INITIALIZED);
|
||||
|
||||
Device deviceOld = DBHelper.getDevice(dummyGBDevice, daoSession);
|
||||
assertNotNull(deviceOld);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user