From 4e570684acee675da33a12ee686c92a5acc67c3b Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Fri, 15 Nov 2024 09:44:46 +0100 Subject: [PATCH] chore(kafka): fix tests --- src/modules/services/kafka-connect.nix | 2 +- tests/kafka-connect/.test.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/modules/services/kafka-connect.nix b/src/modules/services/kafka-connect.nix index f18af9a10..04fe87539 100644 --- a/src/modules/services/kafka-connect.nix +++ b/src/modules/services/kafka-connect.nix @@ -185,7 +185,7 @@ in initial_delay_seconds = 2; http_get = { path = "/connectors"; - port = "8083"; + port = 8083; }; }; diff --git a/tests/kafka-connect/.test.sh b/tests/kafka-connect/.test.sh index e9690a205..0d947510a 100755 --- a/tests/kafka-connect/.test.sh +++ b/tests/kafka-connect/.test.sh @@ -1,3 +1,8 @@ set -e -curl http://localhost:8083/connectors -H "Content-Type: application/json" +curl --connect-timeout 5 \ + --max-time 5 \ + --retry 9 \ + --retry-delay 2 \ + --retry-all-errors \ + http://localhost:8083/connectors