forked from TrueCloudLab/frostfs-node
*: use require.ErrorIs
where possible
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
3c39e6df11
commit
a4769d8624
8 changed files with 16 additions and 20 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue