mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Tests: set device state to inizialized before assuming fw version gets written to attributes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user