🧪 test: update test server config
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 8s
CI/CD Pipeline / CI Pipeline (push) Failing after 5m3s

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-04-11 16:23:42 +02:00
parent 4f7700f6ce
commit 4f01b427b8

View File

@@ -1,6 +1,7 @@
package testserver
import (
"os"
"testing"
"github.com/stretchr/testify/assert"
@@ -11,6 +12,11 @@ func TestCreateTestConfig(t *testing.T) {
t.Run("DefaultConfig", func(t *testing.T) {
cfg := createTestConfig(9999, false)
expectedDatabaseName := os.Getenv("DLC_DATABASE_NAME")
if expectedDatabaseName == "" {
expectedDatabaseName = "dance_lessons_coach"
}
assert.Equal(t, "0.0.0.0", cfg.Server.Host)
assert.Equal(t, 9999, cfg.Server.Port)
assert.Equal(t, "test-secret-key-for-bdd-tests", cfg.Auth.JWTSecret)