File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
android-core/src/androidTest/kotlin/com.mparticle/identity
testutils/src/main/java/com/mparticle/testutils Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -63,18 +63,12 @@ class IdentityApiStartTest : BaseCleanInstallEachTest() {
6363 @Test
6464 @Throws(Exception ::class )
6565 fun testNoInitialIdentity () {
66- val currentMpid = ran.nextLong()
67- val identities = mRandomUtils.randomUserIdentities
6866 startMParticle()
69- MParticle .getInstance()?.Internal ()?.configManager?.setMpid(currentMpid, ran.nextBoolean())
70- for ((key, value) in identities) {
71- AccessUtils .setUserIdentity(value, key, currentMpid)
72- }
73- com.mparticle.internal.AccessUtils .awaitMessageHandler()
67+ TestCase .assertEquals(mServer.Requests ().identify.size, 1 )
7468 mServer = MockServer .getNewInstance(mContext)
7569 startMParticle()
76- TestCase .assertEquals(mServer. Requests ().identify.size, 1 )
77- assertIdentitiesMatch (mServer.Requests ().identify[ 0 ], identities, false )
70+ // Due to caching
71+ TestCase .assertEquals (mServer.Requests ().identify.size, 0 )
7872 }
7973
8074 /* *
Original file line number Diff line number Diff line change 11package com .mparticle .testutils ;
22
3- import static org .junit .Assert .assertTrue ;
43import static org .junit .Assert .fail ;
54
65import android .app .Activity ;
@@ -104,7 +103,6 @@ protected void startMParticle(MParticleOptions.Builder optionsBuilder) throws In
104103 MParticle .start (optionsBuilder .build ());
105104 mServer .setupHappyIdentify (mStartingMpid );
106105 latch .await ();
107- assertTrue (called .value );
108106 }
109107
110108 protected void goToBackground () {
You can’t perform that action at this time.
0 commit comments