Skip to content

Commit

Permalink
Reverting changes to synchronous auth and adding logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gpanshu committed Dec 20, 2022
1 parent 26097a9 commit 93d9995
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -34,18 +34,20 @@ import com.amplifyframework.auth.cognito.AWSCognitoAuthPlugin
import com.amplifyframework.core.Amplify
import com.amplifyframework.hub.HubChannel
import com.amplifyframework.hub.HubEvent
import com.amplifyframework.logging.AndroidLoggingPlugin
import com.amplifyframework.logging.LogLevel
import com.amplifyframework.testutils.HubAccumulator
import com.amplifyframework.testutils.Resources
import com.amplifyframework.testutils.Sleep
import com.amplifyframework.testutils.sync.SynchronousAuth
import java.util.UUID
import java.util.concurrent.TimeUnit
import kotlinx.coroutines.runBlocking
import org.json.JSONException
import org.junit.Assert
import org.junit.Before
import org.junit.BeforeClass
import org.junit.Test
import java.util.UUID
import java.util.concurrent.TimeUnit

class PinpointAnalyticsInstrumentationTest {
@Before
Expand Down Expand Up @@ -388,9 +390,11 @@ class PinpointAnalyticsInstrumentationTest {
setUniqueId()
Amplify.Auth.addPlugin(AWSCognitoAuthPlugin() as AuthPlugin<*>)
Amplify.addPlugin(AWSPinpointAnalyticsPlugin())
Amplify.Logging.addPlugin(AndroidLoggingPlugin(LogLevel.DEBUG))
Amplify.configure(context)
Sleep.milliseconds(COGNITO_CONFIGURATION_TIMEOUT)
synchronousAuth = SynchronousAuth.delegatingTo(Amplify.Auth)

}

private fun setUniqueId() {
Expand Down

0 comments on commit 93d9995

Please sign in to comment.