bugfix unit test status online (#18358)

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
pull/18349/merge
Bernd Weymann 2025-03-04 22:02:05 +01:00 committed by GitHub
parent 4fc8f75639
commit 77c729bc39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -113,6 +113,13 @@ class TestHandler {
assertEquals(ThingStatus.OFFLINE, tsi.getStatus());
assertEquals(ThingStatusDetail.CONFIGURATION_ERROR, tsi.getStatusDetail());
assertEquals("@text/casokitchen.winecooler-2z.status.device-id-missing", tsi.getDescription());
config.put("deviceId", "xyz");
thing.setConfiguration(config);
winecoolerHandler.initialize();
callback.waitForOnline();
tsi = thing.getStatusInfo();
assertEquals(ThingStatus.ONLINE, tsi.getStatus());
}
@Test