Skip to content

Commit

Permalink
fixup! Use GrpcCleanupRule instead
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiitk committed Sep 16, 2020
1 parent a944c59 commit 622d35f
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -324,8 +324,7 @@ public void authorityIsReadable_default() {

builder = new ManagedChannelImplBuilder(DUMMY_AUTHORITY_VALID,
mockClientTransportFactoryBuilder, new FixedPortProvider(DUMMY_PORT));
ManagedChannel channel = builder.build();
grpcCleanupRule.register(channel);
ManagedChannel channel = grpcCleanupRule.register(builder.build());
assertEquals(DUMMY_AUTHORITY_VALID, channel.authority());
}

Expand All @@ -338,9 +337,9 @@ public void authorityIsReadable_overrideAuthority() {
.thenReturn(mockClientTransportFactory);

builder = new ManagedChannelImplBuilder(DUMMY_TARGET,
mockClientTransportFactoryBuilder, new FixedPortProvider(DUMMY_PORT));
ManagedChannel channel = builder.overrideAuthority(overrideAuthority).build();
grpcCleanupRule.register(channel);
mockClientTransportFactoryBuilder, new FixedPortProvider(DUMMY_PORT))
.overrideAuthority(overrideAuthority);
ManagedChannel channel = grpcCleanupRule.register(builder.build());
assertEquals(overrideAuthority, channel.authority());
}

Expand Down

0 comments on commit 622d35f

Please sign in to comment.