Skip to content

Commit 1ad11c1

Browse files
authored
android: avoid static init of robolectric shadows (grpc#4402)
1 parent f4f4302 commit 1ad11c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/test/java/io/grpc/android/AndroidChannelBuilderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848
@RunWith(RobolectricTestRunner.class)
4949
@Config(shadows = {AndroidChannelBuilderTest.ShadowDefaultNetworkListenerConnectivityManager.class})
5050
public final class AndroidChannelBuilderTest {
51-
private static final NetworkInfo WIFI_CONNECTED =
51+
private final NetworkInfo WIFI_CONNECTED =
5252
ShadowNetworkInfo.newInstance(
5353
NetworkInfo.DetailedState.CONNECTED, ConnectivityManager.TYPE_WIFI, 0, true, true);
54-
private static final NetworkInfo WIFI_DISCONNECTED =
54+
private final NetworkInfo WIFI_DISCONNECTED =
5555
ShadowNetworkInfo.newInstance(
5656
NetworkInfo.DetailedState.DISCONNECTED, ConnectivityManager.TYPE_WIFI, 0, true, false);
5757
private final NetworkInfo MOBILE_CONNECTED =

0 commit comments

Comments
 (0)