@@ -100,13 +100,13 @@ public void testFetchAllAsynchronousAndGetFalse() throws NoSuchFieldException, I
100100 Mockito .doNothing ().when (segmentFetcher ).callLoopRun (Mockito .anyBoolean (),Mockito .anyBoolean ());
101101
102102 // Before executing, we'll update the map of segmentFecthers via reflection.
103- Field backoffBase = SegmentSynchronizationTaskImp .class .getDeclaredField ("_segmentFetchers" );
104- backoffBase .setAccessible (true );
103+ Field segmentFetchersForced = SegmentSynchronizationTaskImp .class .getDeclaredField ("_segmentFetchers" );
104+ segmentFetchersForced .setAccessible (true );
105105 Field modifiersField = Field .class .getDeclaredField ("modifiers" );
106106 modifiersField .setAccessible (true );
107- modifiersField .setInt (backoffBase , backoffBase .getModifiers () & ~Modifier .FINAL );
107+ modifiersField .setInt (segmentFetchersForced , segmentFetchersForced .getModifiers () & ~Modifier .FINAL );
108108
109- backoffBase .set (fetchers , _segmentFetchers ); // 1ms
109+ segmentFetchersForced .set (fetchers , _segmentFetchers ); // 1ms
110110 fetcher1 .set (segmentFetcher );
111111 boolean fetch = fetchers .fetchAllSynchronous ();
112112 Assert .assertEquals (false , fetch );
@@ -122,11 +122,11 @@ public void testFetchAllAsynchronousAndGetTrue() throws NoSuchFieldException, Il
122122 final SegmentSynchronizationTaskImp fetchers = new SegmentSynchronizationTaskImp (segmentChangeFetcher , 1L , 1 , gates , segmentCache , TELEMETRY_STORAGE );
123123
124124 // Before executing, we'll update the map of segmentFecthers via reflection.
125- Field backoffBase = SegmentSynchronizationTaskImp .class .getDeclaredField ("_segmentFetchers" );
126- backoffBase .setAccessible (true );
125+ Field segmentFetchersForced = SegmentSynchronizationTaskImp .class .getDeclaredField ("_segmentFetchers" );
126+ segmentFetchersForced .setAccessible (true );
127127 Field modifiersField = Field .class .getDeclaredField ("modifiers" );
128128 modifiersField .setAccessible (true );
129- modifiersField .setInt (backoffBase , backoffBase .getModifiers () & ~Modifier .FINAL );
129+ modifiersField .setInt (segmentFetchersForced , segmentFetchersForced .getModifiers () & ~Modifier .FINAL );
130130 Mockito .doNothing ().when (segmentFetcher ).callLoopRun (Mockito .anyBoolean (),Mockito .anyBoolean ());
131131 Mockito .when (segmentFetcher .runWhitCacheHeader ()).thenReturn (true );
132132 Mockito .when (segmentFetcher .fetchAndUpdate (Mockito .anyBoolean ())).thenReturn (true );
0 commit comments