diff options
Diffstat (limited to 'internal/config/config_test.go')
| -rw-r--r-- | internal/config/config_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 50d9b67..e1df1aa 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go | |||
| @@ -257,7 +257,6 @@ server: | |||
| 257 | 257 | ||
| 258 | database: | 258 | database: |
| 259 | path: "test.db" | 259 | path: "test.db" |
| 260 | max_lifetime: "30m" | ||
| 261 | 260 | ||
| 262 | rate_limit: | 261 | rate_limit: |
| 263 | cleanup_interval: "10m" | 262 | cleanup_interval: "10m" |
| @@ -282,7 +281,7 @@ rate_limit: | |||
| 282 | t.Errorf("expected write timeout 2m, got %v", cfg.Server.WriteTimeout) | 281 | t.Errorf("expected write timeout 2m, got %v", cfg.Server.WriteTimeout) |
| 283 | } | 282 | } |
| 284 | 283 | ||
| 285 | if cfg.Database.MaxLifetime != 30*time.Minute { | 284 | if cfg.RateLimit.CleanupInterval != 10*time.Minute { |
| 286 | t.Errorf("expected max lifetime 30m, got %v", cfg.Database.MaxLifetime) | 285 | t.Errorf("expected cleanup interval 10m, got %v", cfg.RateLimit.CleanupInterval) |
| 287 | } | 286 | } |
| 288 | } | 287 | } |
