Skip to content

Commit

Permalink
fix: inject client instead of creating it manually
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Laprun <[email protected]>
  • Loading branch information
metacosm committed Nov 29, 2024
1 parent aa68c56 commit 52359ca
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,21 @@

import java.util.concurrent.TimeUnit;

import jakarta.inject.Inject;

import org.junit.jupiter.api.Test;

import io.fabric8.kubernetes.api.model.ObjectMetaBuilder;
import io.fabric8.kubernetes.client.KubernetesClient;
import io.quarkus.kubernetes.client.runtime.KubernetesClientUtils;
import io.quarkus.test.junit.QuarkusTest;

@QuarkusTest
class ExposedAppReconcilerTest {

public static final String TEST_APP = "test-app";

protected final KubernetesClient client = KubernetesClientUtils.createClient();
@Inject
protected KubernetesClient client;

@Test
void reconcileShouldWork() {
Expand Down

0 comments on commit 52359ca

Please sign in to comment.