X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FPluginWebOfTrustConnectorTest.kt;h=1af177fb937588e5be0e36612435acf76b76c1d5;hb=9b102d5ff09775e3867ad8709f22baf0ad608d30;hp=84acd6585efa517bcad356affe28b345875182da;hpb=c09f9eb8062ce9395c73e341f9fcb6b015bd734a;p=Sone.git diff --git a/src/test/kotlin/net/pterodactylus/sone/freenet/wot/PluginWebOfTrustConnectorTest.kt b/src/test/kotlin/net/pterodactylus/sone/freenet/wot/PluginWebOfTrustConnectorTest.kt index 84acd65..1af177f 100644 --- a/src/test/kotlin/net/pterodactylus/sone/freenet/wot/PluginWebOfTrustConnectorTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/freenet/wot/PluginWebOfTrustConnectorTest.kt @@ -319,7 +319,7 @@ private fun PluginConnector.connect(block: PluginWebOfTrustConnector.() -> R fun createPluginConnector(message: String, fieldsMatcher: Matcher = IsAnything(), build: SimpleFieldSetBuilder.() -> Unit = {}) = object : PluginConnector { - override fun sendRequest(pluginName: String, fields: SimpleFieldSet, data: Bucket?) = + override suspend fun sendRequest(pluginName: String, fields: SimpleFieldSet, data: Bucket?) = if ((pluginName != wotPluginName) || (fields.get("Message") != message)) { throw PluginException() } else {