From 93e5765a09b464e5eb75afb23d7340ac7ad920da Mon Sep 17 00:00:00 2001 From: mihna123 Date: Thu, 10 Sep 2026 18:56:57 +0200 Subject: config: fix the ErrBadConfig text and check err type in test --- internal/config/config_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/config/config_test.go') diff --git a/internal/config/config_test.go b/internal/config/config_test.go index bc1ec37..39baa0b 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -169,6 +169,10 @@ func TetsRejectsConfigWithoutDatabase(t *testing.T) { if err == nil { t.Errorf("Load returned no error when database config is missing") } + + if !errors.Is(err, ErrBadConfig) { + t.Errorf("Got error %v, wanted %v", err, ErrBadConfig) + } } func TestDefaultPath(t *testing.T) { -- cgit v1.3.1