Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyenought committed Nov 24, 2023
1 parent 1645e58 commit d0b8a30
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions rediscluster/redisc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ import (
"bytes"
"encoding/base64"
"encoding/gob"
"github.com/cloudwego/hertz/pkg/common/hlog"
"net/http"
"net/http/httptest"
"testing"
Expand Down Expand Up @@ -365,12 +364,11 @@ func TestPingGoodPort(t *testing.T) {
if err != nil {
t.Error(err.Error())
}
defer func() {
err := store.Close()
hlog.Error(err.Error())
}()
defer store.Close()
ok, err := store.ping()

if err != nil {
t.Error(err.Error())
}
if !ok {
t.Error("Expected server to PONG")
}
Expand Down

0 comments on commit d0b8a30

Please sign in to comment.