fix(test): rename Url field to URL to satisfy revive var-naming
Lint (golangci-lint revive) requires acronyms like URL to be all-caps in Go field names. Adjusts the motivation config test struct and its assertion accordingly so the release-please PR can pass CI. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -21,7 +21,7 @@ type motivationConfig struct {
|
|||||||
Service struct {
|
Service struct {
|
||||||
Database struct {
|
Database struct {
|
||||||
Poolsize string `json:"poolsize"`
|
Poolsize string `json:"poolsize"`
|
||||||
Url string `json:"url"`
|
URL string `json:"url"`
|
||||||
} `json:"database"`
|
} `json:"database"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Subservice struct {
|
Subservice struct {
|
||||||
@@ -100,8 +100,8 @@ DATABASE_URL=postgres://dotenv
|
|||||||
if cfg.Service.Name != "my-service" {
|
if cfg.Service.Name != "my-service" {
|
||||||
t.Fatalf("Service.Name=%q", cfg.Service.Name)
|
t.Fatalf("Service.Name=%q", cfg.Service.Name)
|
||||||
}
|
}
|
||||||
if cfg.Service.Database.Url != "postgres://localhost:5432/db" {
|
if cfg.Service.Database.URL != "postgres://localhost:5432/db" {
|
||||||
t.Fatalf("Service.Database.Url=%q", cfg.Service.Database.Url)
|
t.Fatalf("Service.Database.URL=%q", cfg.Service.Database.URL)
|
||||||
}
|
}
|
||||||
if cfg.Service.Database.Poolsize != "10" {
|
if cfg.Service.Database.Poolsize != "10" {
|
||||||
t.Fatalf("Service.Database.Poolsize=%q", cfg.Service.Database.Poolsize)
|
t.Fatalf("Service.Database.Poolsize=%q", cfg.Service.Database.Poolsize)
|
||||||
|
|||||||
Reference in New Issue
Block a user