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