chore(test): update common test
This commit is contained in:
parent
0f2e0118c0
commit
eb4238e89c
|
@ -6,15 +6,15 @@ import (
|
|||
)
|
||||
|
||||
func TestCheckErrTrue(T *testing.T) {
|
||||
// true
|
||||
err := errors.New("Test")
|
||||
e := CheckErr(err, "test err")
|
||||
if e != true {
|
||||
T.Error(e)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCheckErrFalse(T *testing.T) {
|
||||
e := CheckErr(nil, "test err")
|
||||
// false
|
||||
e = CheckErr(nil, "test err")
|
||||
if e != false {
|
||||
T.Error(e)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue