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