Skip to content

Commit 3b1117d

Browse files
authored
Merge pull request #433 from Countly/first_view
First view in a session
2 parents f622454 + d1ce37a commit 3b1117d

File tree

3 files changed

+113
-40
lines changed

3 files changed

+113
-40
lines changed

sdk/src/androidTest/java/ly/count/android/sdk/ModuleEventsTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,8 @@ public void recordEventScenario_previous_current_ViewName_disabled() throws JSON
899899
countly.views().startView("View1");
900900
countly.events().recordEvent("TEST1");
901901

902-
ModuleViewsTests.validateView("View1", 0.0, 1, 3, true, true, TestUtils.map(), "_CLY_", "_CLY_", null);
902+
// start false because session did not start
903+
ModuleViewsTests.validateView("View1", 0.0, 1, 3, false, true, TestUtils.map(), "_CLY_", "_CLY_", null);
903904
validateEventInRQ("TEST1", 2, 3, "_CLY_", "_CLY_", null, null);
904905

905906
countly.views().startView("View2");
@@ -930,7 +931,8 @@ public void recordEventScenario_previous_current_ViewName() throws JSONException
930931
countly.views().startView("View1");
931932
countly.events().recordEvent("TEST1");
932933

933-
ModuleViewsTests.validateView("View1", 0.0, 1, 3, true, true, TestUtils.map(), "_CLY_", "_CLY_", "");
934+
// start false because session did not start
935+
ModuleViewsTests.validateView("View1", 0.0, 1, 3, false, true, TestUtils.map(), "_CLY_", "_CLY_", "");
934936
validateEventInRQ("TEST1", 2, 3, "_CLY_", "_CLY_", "TEST", "View1");
935937

936938
countly.views().startView("View2");

0 commit comments

Comments
 (0)