mirror of https://github.com/grpc/grpc-java.git
core: Disable panic mode
It is now discovering legitimate errors in some tests that need to be resolved first. Follow progress at #3293.
This commit is contained in:
parent
09d305c3fc
commit
1b5aadf068
|
|
@ -119,8 +119,12 @@ final class ManagedChannelImpl extends ManagedChannel implements Instrumented<Ch
|
||||||
@Override
|
@Override
|
||||||
void handleUncaughtThrowable(Throwable t) {
|
void handleUncaughtThrowable(Throwable t) {
|
||||||
super.handleUncaughtThrowable(t);
|
super.handleUncaughtThrowable(t);
|
||||||
|
// Disabled because it breaks some tests, as it detects pre-existing issues.
|
||||||
|
// See #3293
|
||||||
|
if (false) {
|
||||||
panic(t);
|
panic(t);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private boolean fullStreamDecompression;
|
private boolean fullStreamDecompression;
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
import java.util.concurrent.atomic.AtomicLong;
|
import java.util.concurrent.atomic.AtomicLong;
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
|
import org.junit.Assume;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
@ -1673,6 +1674,8 @@ public class ManagedChannelImplTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void verifyPanicMode(Throwable cause) {
|
private void verifyPanicMode(Throwable cause) {
|
||||||
|
Assume.assumeTrue("Panic mode disabled to resolve issues with some tests. See #3293", false);
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
ClientCall.Listener<Integer> mockListener =
|
ClientCall.Listener<Integer> mockListener =
|
||||||
(ClientCall.Listener<Integer>) mock(ClientCall.Listener.class);
|
(ClientCall.Listener<Integer>) mock(ClientCall.Listener.class);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue