diff --git a/backend/internal/service/app_config_service_test.go b/backend/internal/service/app_config_service_test.go index 31973943..c986162b 100644 --- a/backend/internal/service/app_config_service_test.go +++ b/backend/internal/service/app_config_service_test.go @@ -47,9 +47,8 @@ func TestLoadDbConfig(t *testing.T) { // Populate the config table with some initial values err := db. Create([]model.AppConfigVariable{ - // Should be set to the default value because it's an empty string - {Key: "appName", Value: ""}, // Overrides default value + {Key: "appName", Value: "Test App"}, {Key: "sessionDuration", Value: "5"}, // Does not have a default value {Key: "smtpHost", Value: "example"}, @@ -66,6 +65,7 @@ func TestLoadDbConfig(t *testing.T) { // Values should match expected ones expect := service.getDefaultDbConfig() + expect.AppName.Value = "Test App" expect.SessionDuration.Value = "5" expect.SmtpHost.Value = "example" require.Equal(t, service.GetDbConfig(), expect)