Skip to content

Commit 5a596a4

Browse files
fix the test case and syntax of instrument test cases
1 parent 11ea2f3 commit 5a596a4

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/pull-request.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,10 @@ jobs:
5959
script: |
6060
# Disable animations and clean up test packages
6161
bash -eo pipefail -c '
62-
adb shell settings put global transition_animation_scale 0.0
63-
adb shell settings put global animator_duration_scale 0.0
62+
adb shell settings put global transition_animation_scale 0.0
63+
adb shell settings put global animator_duration_scale 0.0
6464
65-
for pkg in com.mparticle.kittests com.mparticle.kits.test com.mparticle.legacyTest com.mparticle.test; do
66-
if adb shell pm list packages | grep -q "$pkg"; then
67-
adb uninstall "$pkg"
68-
fi
69-
done
70-
'
65+
for pkg in com.mparticle.kittests com.mparticle.kits.test com.mparticle.legacyTest com.mparticle.test; do if adb shell pm list packages | grep -q "$pkg"; then adb uninstall "$pkg"; fi; done
7166
7267
./gradlew connectedCheck --info --stacktrace
7368

android-kit-base/src/androidTest/kotlin/com/mparticle/kits/testkits/UserAttributeListenerTestKit.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ open class UserAttributeListenerTestKit :
1515
var onSetUserTag: ((key: String?, user: FilteredMParticleUser?) -> Unit)? = null
1616
var onSetUserAttributeList: ((attributeKey: String?, attributeValueList: List<String?>?, user: FilteredMParticleUser?) -> Unit)? =
1717
null
18-
var onSetAllUserAttributes: (
18+
var onSetAllUserAttributes: ((
1919
userAttributes: Map<String?, String?>?,
2020
userAttributeLists: Map<String?, List<String?>?>?,
2121
user: FilteredMParticleUser?,
22-
) -> Unit? = null
22+
) -> Unit)? = null
2323
var supportsAttributeLists: (() -> Boolean)? = null
2424
var onConsentStateUpdated: ((oldState: ConsentState?, newState: ConsentState?, user: FilteredMParticleUser?) -> Unit)? =
2525
null

0 commit comments

Comments
 (0)