From: David ‘Bombe’ Roden Date: Thu, 12 Dec 2019 19:18:04 +0000 (+0100) Subject: 🐛 Remove useless double plugin start in test X-Git-Tag: v81^2~5^2~30 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8ddb8efff40ebe372d78758e6bb83f7a5954f6dc;p=Sone.git 🐛 Remove useless double plugin start in test --- diff --git a/src/test/kotlin/net/pterodactylus/sone/main/SonePluginTest.kt b/src/test/kotlin/net/pterodactylus/sone/main/SonePluginTest.kt index b40df75..c3f1cd7 100644 --- a/src/test/kotlin/net/pterodactylus/sone/main/SonePluginTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/main/SonePluginTest.kt @@ -115,7 +115,6 @@ class SonePluginTest { val eventBus = it.getInstance(EventBus::class.java) eventBus.register(FirstStartListener(firstStartReceived)) } - sonePlugin.runPlugin(pluginRespirator) assertThat(firstStartReceived.get(), equalTo(true)) } @@ -128,7 +127,6 @@ class SonePluginTest { val eventBus = it.getInstance(EventBus::class.java) eventBus.register(FirstStartListener(firstStartReceived)) } - sonePlugin.runPlugin(pluginRespirator) assertThat(firstStartReceived.get(), equalTo(false)) } } @@ -149,7 +147,6 @@ class SonePluginTest { val eventBus = it.getInstance(EventBus::class.java) eventBus.register(ConfigNotReadListener(configNotReadReceived)) } - sonePlugin.runPlugin(pluginRespirator) assertThat(configNotReadReceived.get(), equalTo(true)) } } @@ -162,7 +159,6 @@ class SonePluginTest { val eventBus = it.getInstance(EventBus::class.java) eventBus.register(ConfigNotReadListener(configNotReadReceived)) } - sonePlugin.runPlugin(pluginRespirator) assertThat(configNotReadReceived.get(), equalTo(false)) } @@ -175,7 +171,6 @@ class SonePluginTest { val eventBus = it.getInstance(EventBus::class.java) eventBus.register(ConfigNotReadListener(configNotReadReceived)) } - sonePlugin.runPlugin(pluginRespirator) assertThat(configNotReadReceived.get(), equalTo(false)) } } @@ -194,7 +189,6 @@ class SonePluginTest { val eventBus = it.getInstance(EventBus::class.java) eventBus.register(StartupListener { startupReceived.set(true) }) } - sonePlugin.runPlugin(pluginRespirator) assertThat(startupReceived.get(), equalTo(true)) }