diff options
author | Steve Moyer <smoyer1@selesy.com> | 2022-12-23 07:16:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-23 07:16:36 -0500 |
commit | f94616ec76e01145a7b2b90c11b27a25d4a4be96 (patch) | |
tree | 885844b5412f824b4ba9aad3725080dded0d27fe /repository/config_testing.go | |
parent | 0a5a0ec1ef4ad98bc2116a953e201f96474941ab (diff) | |
parent | 0cd2f3b4bda294b040e31337ddb380fb72192a63 (diff) | |
download | git-bug-f94616ec76e01145a7b2b90c11b27a25d4a4be96.tar.gz |
Merge pull request #936 from MichaelMure/feat/935/disambiguate-config-errors
feat(935): disambiguate config errors
Diffstat (limited to 'repository/config_testing.go')
-rw-r--r-- | repository/config_testing.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/repository/config_testing.go b/repository/config_testing.go index f8a2762b..8c22934a 100644 --- a/repository/config_testing.go +++ b/repository/config_testing.go @@ -53,7 +53,7 @@ func testConfig(t *testing.T, config Config) { }, configs) _, err = config.ReadBool("section.true") - require.Equal(t, ErrNoConfigEntry, err) + require.ErrorIs(t, err, ErrNoConfigEntry) err = config.RemoveAll("section.nonexistingkey") require.Error(t, err) @@ -62,7 +62,7 @@ func testConfig(t *testing.T, config Config) { require.NoError(t, err) _, err = config.ReadString("section.key") - require.Equal(t, ErrNoConfigEntry, err) + require.ErrorIs(t, err, ErrNoConfigEntry) err = config.RemoveAll("nonexistingsection") require.Error(t, err) |