From 6624f0d85ee0569b8853b41cbacf19771ffbde5f Mon Sep 17 00:00:00 2001 From: marcin-cebo <102806110+marcin-cebo@users.noreply.github.com> Date: Fri, 27 Sep 2024 13:35:00 +0200 Subject: [PATCH] Added setup of KMP tests (#289) --- .../kotlin/com.pubnub.test/BaseIntegrationTest.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pubnub-kotlin/pubnub-kotlin-test/src/commonMain/kotlin/com.pubnub.test/BaseIntegrationTest.kt b/pubnub-kotlin/pubnub-kotlin-test/src/commonMain/kotlin/com.pubnub.test/BaseIntegrationTest.kt index a5a73c1bf..b80f23f0c 100644 --- a/pubnub-kotlin/pubnub-kotlin-test/src/commonMain/kotlin/com.pubnub.test/BaseIntegrationTest.kt +++ b/pubnub-kotlin/pubnub-kotlin-test/src/commonMain/kotlin/com.pubnub.test/BaseIntegrationTest.kt @@ -30,14 +30,18 @@ import kotlin.test.assertTrue abstract class BaseIntegrationTest { lateinit var config: PNConfiguration + lateinit var config02: PNConfiguration lateinit var configPam: PNConfiguration lateinit var pubnub: PubNub + lateinit var pubnub02: PubNub lateinit var pubnubPam: PubNub @BeforeTest open fun before() { config = createPNConfiguration(UserId(randomString()), Keys.subKey, Keys.pubKey, logVerbosity = PNLogVerbosity.BODY) + config02 = createPNConfiguration(UserId(randomString()), Keys.subKey, Keys.pubKey, logVerbosity = PNLogVerbosity.BODY) pubnub = createPubNub(config) + pubnub02 = createPubNub(config02) configPam = createPNConfiguration( UserId(randomString()), Keys.pamSubKey, @@ -52,6 +56,8 @@ abstract class BaseIntegrationTest { open fun after() { pubnub.unsubscribeAll() pubnub.destroy() + pubnub02.unsubscribeAll() + pubnub02.destroy() pubnubPam.unsubscribeAll() pubnubPam.destroy() }