diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2022-02-03 22:39:46 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2022-02-03 22:52:19 +0300 |
commit | b7d42ef5004b59d1885dcd332eaab64805d2578c (patch) | |
tree | a7167159ae9808b82bc88c114ffd7afd9773ecf3 /internal/config | |
parent | f2fd9a8e0b4778991adf054ef8f3a7244200a60d (diff) |
test: migrate to assertions using modern error checking
Diffstat (limited to 'internal/config')
-rw-r--r-- | internal/config/validate_test.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/internal/config/validate_test.go b/internal/config/validate_test.go index 60e37732..2118bb93 100644 --- a/internal/config/validate_test.go +++ b/internal/config/validate_test.go @@ -1,7 +1,6 @@ package config import ( - "errors" "testing" "github.com/stretchr/testify/require" @@ -73,11 +72,7 @@ func TestConfigValidate(t *testing.T) { tt.cfg(&cfg) err := Validate(&cfg) - if tt.expectedErr != nil { - require.True(t, errors.Is(err, tt.expectedErr)) - } else { - require.NoError(t, err) - } + require.ErrorIs(t, err, tt.expectedErr) }) } } |