@Override
    public void afterTestExecution(ExtensionContext context) throws Exception {
        if (TestUtil.isDocServiceDemoMode()) {
            if (oldTimeoutMode != null) {
                System.setProperty(Timeout.TIMEOUT_MODE_PROPERTY_NAME, oldTimeoutMode);
                oldTimeoutMode = null;
            } else {
                System.clearProperty(Timeout.TIMEOUT_MODE_PROPERTY_NAME);
            }
        }
    }
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