From eb0f0190259b6c18c79279a3f59d3bacdaae20e8 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 12 Aug 2026 14:42:30 +0200 Subject: [PATCH] Fix Whisper healthcheck and root redirect test. --- docker-compose.yml | 2 +- tests/Feature/ExampleTest.php | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b8b8580..c86f38f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,7 @@ services: WHISPER__MODEL: ${LOCAL_WHISPER_MODEL:-Systran/faster-whisper-base} restart: unless-stopped healthcheck: - test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health')"] + test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health')"] interval: 15s timeout: 5s retries: 10 diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php index 8364a84..c7677b6 100644 --- a/tests/Feature/ExampleTest.php +++ b/tests/Feature/ExampleTest.php @@ -12,8 +12,7 @@ class ExampleTest extends TestCase */ public function test_the_application_returns_a_successful_response(): void { - $response = $this->get('/'); - - $response->assertStatus(200); + $this->get('/') + ->assertRedirect('/recordings'); } }