*: use require.ErrorIs where possible

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-04-29 13:22:29 +03:00 committed by LeL
parent 3c39e6df11
commit a4769d8624
8 changed files with 16 additions and 20 deletions

View file

@ -2,7 +2,6 @@ package cmd
import (
"bytes"
"errors"
"io"
"os"
"path/filepath"
@ -122,7 +121,7 @@ func Test_getKey(t *testing.T) {
func checkKeyError(t *testing.T, desc string, err error) {
viper.Set(walletPath, desc)
_, actualErr := getKey()
require.True(t, errors.Is(actualErr, err), "got: %v", actualErr)
require.ErrorIs(t, actualErr, err)
}
func checkKey(t *testing.T, desc string, expected *keys.PrivateKey) {