diff --git a/src/test/java/io/antmedia/test/AntMediaApplicationAdaptorUnitTest.java b/src/test/java/io/antmedia/test/AntMediaApplicationAdaptorUnitTest.java index 8e902d77b..1ca0efcf8 100644 --- a/src/test/java/io/antmedia/test/AntMediaApplicationAdaptorUnitTest.java +++ b/src/test/java/io/antmedia/test/AntMediaApplicationAdaptorUnitTest.java @@ -398,10 +398,13 @@ public void testAppSettings() verify(clusterNotifier, times(1)).getClusterStore(); verify(clusterStore, times(1)).saveSettings(settings); - settings.setUpdateTime(1000); + settings.setUpdateTime(900); newSettings.setUpdateTime(900); assertFalse(spyAdapter.updateSettings(newSettings, false, true)); + newSettings.setUpdateTime(1000); + assertTrue(spyAdapter.updateSettings(newSettings, false, true)); + newSettings.setPlayJwtControlEnabled(true); newSettings.setPlayTokenControlEnabled(true);