add travis.yml

This commit is contained in:
hdt3213
2021-05-02 16:31:41 +08:00
parent 12b17750b2
commit ab2cb554fa
4 changed files with 19 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ package client
import (
"github.com/hdt3213/godis/lib/logger"
"github.com/hdt3213/godis/redis/reply"
"strconv"
"testing"
)
@@ -55,7 +56,7 @@ func TestClient(t *testing.T) {
})
if intRet, ok := result.(*reply.IntReply); ok {
if intRet.Code != 1 {
t.Error("`del` failed, result: " + string(intRet.Code))
t.Error("`del` failed, result: " + strconv.FormatInt(intRet.Code, 10))
}
}
@@ -81,7 +82,7 @@ func TestClient(t *testing.T) {
})
if intRet, ok := result.(*reply.IntReply); ok {
if intRet.Code != 3 {
t.Error("`rpush` failed, result: " + string(intRet.Code))
t.Error("`rpush` failed, result: " + strconv.FormatInt(intRet.Code, 10))
}
}