Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleconroy committed May 10, 2024
1 parent fda2e45 commit c56000d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func TestInvalidConfig(t *testing.T) {
Database: &Database{
URI: "",
Managed: false,
Auto: false,
},
}},
})
Expand Down
2 changes: 1 addition & 1 deletion internal/config/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ func Validate(c *Config) error {
for _, sql := range c.SQL {
if sql.Database != nil {
switch {
case sql.Database.URI == "":
case sql.Database.URI != "":
case sql.Database.Managed:
case sql.Database.Auto:
default:
Expand Down

0 comments on commit c56000d

Please sign in to comment.