From 43b2375e2a0ee2d0457c8be7007ebd3dfd7789e0 Mon Sep 17 00:00:00 2001 From: ljacqu Date: Sat, 1 Apr 2017 22:01:54 +0200 Subject: [PATCH] Fix failing test --- src/test/java/fr/xephi/authme/service/BukkitServiceTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/fr/xephi/authme/service/BukkitServiceTest.java b/src/test/java/fr/xephi/authme/service/BukkitServiceTest.java index 6f8695644..e53a30b3d 100644 --- a/src/test/java/fr/xephi/authme/service/BukkitServiceTest.java +++ b/src/test/java/fr/xephi/authme/service/BukkitServiceTest.java @@ -159,7 +159,7 @@ public class BukkitServiceTest { @Test public void shouldRunTaskDirectly() { // given - given(settings.getProperty(PluginSettings.USE_ASYNC_TASKS)).willReturn(false); + given(server.isPrimaryThread()).willReturn(true); bukkitService.reload(settings); BukkitService spy = Mockito.spy(bukkitService); Runnable task = mock(Runnable.class);