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/source/gitlab/factory_test.go | |
parent | f2fd9a8e0b4778991adf054ef8f3a7244200a60d (diff) |
test: migrate to assertions using modern error checking
Diffstat (limited to 'internal/source/gitlab/factory_test.go')
-rw-r--r-- | internal/source/gitlab/factory_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/source/gitlab/factory_test.go b/internal/source/gitlab/factory_test.go index 705fdc47..78d17ad7 100644 --- a/internal/source/gitlab/factory_test.go +++ b/internal/source/gitlab/factory_test.go @@ -54,7 +54,7 @@ func TestFabricateServing(t *testing.T) { Source: api.Source{Type: "file"}, } srv, err := g.fabricateServing(lookup) - require.EqualError(t, err, ErrDiskDisabled.Error()) + require.ErrorIs(t, err, ErrDiskDisabled) require.Nil(t, srv) }) } |