You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aws-analytics-pinpoint/src/androidTest/java/com/amplifyframework/analytics/pinpoint/PinpointAnalyticsInstrumentationTest.kt
+19-11
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ class PinpointAnalyticsInstrumentationTest {
90
90
91
91
// Act: Record the event
92
92
Amplify.Analytics.recordEvent(event)
93
-
Sleep.milliseconds(RECORD_INSERTION_TIMEOUT)
93
+
Sleep.milliseconds(DEFAULT_TIMEOUT)
94
94
Amplify.Analytics.flushEvents()
95
95
val hubEvents = hubAccumulator.await(10, TimeUnit.SECONDS)
96
96
val submittedEvents = combineAndFilterEvents(hubEvents)
@@ -118,15 +118,15 @@ class PinpointAnalyticsInstrumentationTest {
118
118
.addProperty("DemoDoubleProperty2", 2.0)
119
119
.build()
120
120
Amplify.Analytics.recordEvent(event1)
121
-
Sleep.milliseconds(RECORD_INSERTION_TIMEOUT)
121
+
Sleep.milliseconds(DEFAULT_TIMEOUT)
122
122
val eventName2 ="Amplify-event"+UUID.randomUUID().toString()
123
123
val event2 =AnalyticsEvent.builder()
124
124
.name(eventName2)
125
125
.addProperty("DemoProperty1", "DemoValue1")
126
126
.addProperty("DemoProperty2", 2.0)
127
127
.build()
128
128
Amplify.Analytics.recordEvent(event2)
129
-
Sleep.milliseconds(RECORD_INSERTION_TIMEOUT)
129
+
Sleep.milliseconds(DEFAULT_TIMEOUT)
130
130
Amplify.Analytics.flushEvents()
131
131
val hubEvents = analyticsHubEventAccumulator.await(10, TimeUnit.SECONDS)
132
132
val hubEvent = analyticsHubEventAccumulator.awaitFirst()
@@ -189,9 +189,9 @@ class PinpointAnalyticsInstrumentationTest {
189
189
190
190
// Act: Record two events: the one created above and another just with a key
Copy file name to clipboardExpand all lines: aws-auth-cognito/src/test/java/com/amplifyframework/auth/cognito/featuretest/generators/testcasegenerators/SignInTestCaseGenerator.kt
0 commit comments