mirror of https://github.com/grpc/grpc-java.git
core/test: remove ineffective assertions. (#3352)
The assertions are actually wrong and fail every time. It doesn't cause test failures because SharedResourceHolder calls them in a scheduled executor because of its delayed close feature. It's better to remove them, rather than leaving them there deceiving us.
This commit is contained in:
parent
197f0b8668
commit
34857580ff
|
|
@ -79,7 +79,6 @@ public class DnsNameResolverTest {
|
|||
|
||||
@Override
|
||||
public void close(ScheduledExecutorService instance) {
|
||||
assertSame(fakeClock, instance);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -92,7 +91,6 @@ public class DnsNameResolverTest {
|
|||
|
||||
@Override
|
||||
public void close(ExecutorService instance) {
|
||||
assertSame(fakeExecutor, instance);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue