Skip to content

Commit

Permalink
Added setup of KMP tests (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-cebo authored Sep 27, 2024
1 parent 8b2176f commit 6624f0d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -52,6 +56,8 @@ abstract class BaseIntegrationTest {
open fun after() {
pubnub.unsubscribeAll()
pubnub.destroy()
pubnub02.unsubscribeAll()
pubnub02.destroy()
pubnubPam.unsubscribeAll()
pubnubPam.destroy()
}
Expand Down

0 comments on commit 6624f0d

Please sign in to comment.