chore(test): update common test

This commit is contained in:
MedzikUser 2021-08-14 22:44:09 +02:00
parent 0f2e0118c0
commit eb4238e89c
1 changed files with 3 additions and 3 deletions

View File

@ -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)
}