@Override
    public void beforeTestExecution(ExtensionContext context) throws Exception {
        if (TestUtil.isDocServiceDemoMode()) {
            oldTimeoutMode = System.getProperty(Timeout.TIMEOUT_MODE_PROPERTY_NAME);
            if (!"disabled".equals(oldTimeoutMode)) {
                logger.debug("Disabling timeout for: {}#{}",
                             context.getRequiredTestClass().getName(),
                             context.getDisplayName());
                System.setProperty(Timeout.TIMEOUT_MODE_PROPERTY_NAME, "disabled");
            }
        }
    }
A JUnit extension that disables test timeout when {@link DocService} demo mode is enabled.
testing-internal/src/main/java/com/linecorp/armeria/internal/testing/DocServiceExtension.java