From 6b5bced29dfc7fc104e640e2e417b9221f33a024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jiri=20Dan=C4=9Bk?= Date: Wed, 20 Mar 2024 16:41:24 +0100 Subject: [PATCH] general cleanup --- src/main/java/io/odh/test/platform/KFPv2Client.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/io/odh/test/platform/KFPv2Client.java b/src/main/java/io/odh/test/platform/KFPv2Client.java index baea84d2..0b16beab 100644 --- a/src/main/java/io/odh/test/platform/KFPv2Client.java +++ b/src/main/java/io/odh/test/platform/KFPv2Client.java @@ -145,9 +145,8 @@ public PipelineRun waitForPipelineRun(String pipelineRunId) { AtomicReference run = new AtomicReference<>(); TestUtils.waitFor("pipelineRun to complete", 5000, 10 * 60 * 1000, () -> { - HttpResponse reply = null; try { - reply = httpClient.send(request, HttpResponse.BodyHandlers.ofString()); + HttpResponse reply = httpClient.send(request, HttpResponse.BodyHandlers.ofString()); Assertions.assertEquals(reply.statusCode(), 200, reply.body()); run.set(objectMapper.readValue(reply.body(), PipelineRun.class)); String state = run.get().state;