This is an automated email from the ASF dual-hosted git repository. ppalaga pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 08615de42a9641f7b159ce45ad5bea270a03c2db Author: James Netherton <jamesnether...@gmail.com> AuthorDate: Thu Aug 5 13:06:01 2021 +0100 Remove CamelBoxNativeApplicationStartedNotifier Fixes #2830 --- .../CamelBoxNativeApplicationStartedNotifier.java | 40 ---------------------- ....quarkus.test.common.NativeImageStartedNotifier | 1 - 2 files changed, 41 deletions(-) diff --git a/integration-tests/box/src/test/java/org/apache/camel/quarkus/component/box/it/CamelBoxNativeApplicationStartedNotifier.java b/integration-tests/box/src/test/java/org/apache/camel/quarkus/component/box/it/CamelBoxNativeApplicationStartedNotifier.java deleted file mode 100644 index 655b900..0000000 --- a/integration-tests/box/src/test/java/org/apache/camel/quarkus/component/box/it/CamelBoxNativeApplicationStartedNotifier.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.quarkus.component.box.it; - -import java.nio.file.Paths; -import java.util.concurrent.TimeUnit; - -import io.quarkus.bootstrap.util.IoUtils; -import io.quarkus.test.common.NativeImageStartedNotifier; -import org.awaitility.Awaitility; - -/** - * TODO: Investigate why the native app takes so long to start and eventually remove this - * https://github.com/apache/camel-quarkus/issues/2830 - */ -public class CamelBoxNativeApplicationStartedNotifier implements NativeImageStartedNotifier { - - @Override - public boolean isNativeImageStarted() { - Awaitility.await().pollDelay(1, TimeUnit.SECONDS).timeout(30, TimeUnit.SECONDS).until(() -> { - String log = IoUtils.readFile(Paths.get("target/quarkus.log")); - return log.contains("Installed features"); - }); - return true; - } -} diff --git a/integration-tests/box/src/test/resources/META-INF/services/io.quarkus.test.common.NativeImageStartedNotifier b/integration-tests/box/src/test/resources/META-INF/services/io.quarkus.test.common.NativeImageStartedNotifier deleted file mode 100644 index efacdf3..0000000 --- a/integration-tests/box/src/test/resources/META-INF/services/io.quarkus.test.common.NativeImageStartedNotifier +++ /dev/null @@ -1 +0,0 @@ -org.apache.camel.quarkus.component.box.it.CamelBoxNativeApplicationStartedNotifier \ No newline at end of file