From ceb1a7a582a37f8a27fab07d27748a93f6d58979 Mon Sep 17 00:00:00 2001 From: shadyabarada <47524177+shadyabarada@users.noreply.github.com> Date: Tue, 20 Dec 2022 15:10:27 +0100 Subject: [PATCH 1/2] Update sdk/appcenter/src/test/java/com/microsoft/appcenter/channel/DefaultChannelTest.java Co-authored-by: Dima --- .../com/microsoft/appcenter/channel/DefaultChannelTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/appcenter/src/test/java/com/microsoft/appcenter/channel/DefaultChannelTest.java b/sdk/appcenter/src/test/java/com/microsoft/appcenter/channel/DefaultChannelTest.java index c3d323735..857393ff4 100644 --- a/sdk/appcenter/src/test/java/com/microsoft/appcenter/channel/DefaultChannelTest.java +++ b/sdk/appcenter/src/test/java/com/microsoft/appcenter/channel/DefaultChannelTest.java @@ -1209,7 +1209,7 @@ public void testConcurrentIterableDataStructureUpdatesSuccess() { channel.addGroup(TEST_GROUP_TWO, 50, BATCH_TIME_INTERVAL, MAX_PARALLEL_BATCHES, null, mockListener); channel.addGroup(TEST_GROUP_THREE, 50, BATCH_TIME_INTERVAL, MAX_PARALLEL_BATCHES, null, mockListener); - //Iterate over the map and modify twice + // Iterate over the map and modify twice. Iterator it1 = myMap.keySet().iterator(); while (it1.hasNext()) { String key = it1.next().toString(); From a8a1d3af273cd2d712f5929152659835bf567ab2 Mon Sep 17 00:00:00 2001 From: shadyabarada <47524177+shadyabarada@users.noreply.github.com> Date: Tue, 20 Dec 2022 15:10:35 +0100 Subject: [PATCH 2/2] Update sdk/appcenter/src/test/java/com/microsoft/appcenter/channel/DefaultChannelTest.java Co-authored-by: Dima --- .../com/microsoft/appcenter/channel/DefaultChannelTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/appcenter/src/test/java/com/microsoft/appcenter/channel/DefaultChannelTest.java b/sdk/appcenter/src/test/java/com/microsoft/appcenter/channel/DefaultChannelTest.java index 857393ff4..d3bb8210a 100644 --- a/sdk/appcenter/src/test/java/com/microsoft/appcenter/channel/DefaultChannelTest.java +++ b/sdk/appcenter/src/test/java/com/microsoft/appcenter/channel/DefaultChannelTest.java @@ -1202,7 +1202,7 @@ public void testConcurrentIterableDataStructureUpdatesSuccess() { AppCenterIngestion mockIngestion = mock(AppCenterIngestion.class); Channel.GroupListener mockListener = mock(Channel.GroupListener.class); - //Get the concurrent hashmap in DefaultChannel that accepts modifications during iteration + // Get the concurrent hashmap in DefaultChannel that accepts modifications during iteration. DefaultChannel channel = new DefaultChannel(mock(Context.class), UUID.randomUUID().toString(), mockPersistence, mockIngestion, mAppCenterHandler); Map myMap = channel.getGroupStates(); channel.addGroup(TEST_GROUP, 50, BATCH_TIME_INTERVAL, MAX_PARALLEL_BATCHES, null, mockListener);