update github actions go version

This commit is contained in:
finley
2025-05-25 21:21:58 +08:00
parent d6bbf0315c
commit e5b8f2c6a2
4 changed files with 6 additions and 5 deletions

View File

@@ -23,9 +23,9 @@ jobs:
redis version: '5'
number of databases: 16
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: '1.19'
go-version: '1.23'
- run: go test -v -coverprofile=profile.cov ./...
- uses: shogo82148/actions-goveralls@v1

View File

@@ -4,6 +4,7 @@ import (
"bufio"
"net"
"testing"
"time"
"github.com/hdt3213/godis/database"
)
@@ -19,7 +20,7 @@ func TestListenAndServe(t *testing.T) {
db := database.NewStandaloneServer()
server := NewGnetServer(db)
go server.Run(addr)
time.Sleep(2*time.Second)
conn, err := net.Dial("tcp", addr)
if err != nil {
t.Error(err)

View File

@@ -59,7 +59,7 @@ func (h *EchoHandler) Handle(ctx context.Context, conn net.Conn) {
msg, err := reader.ReadString('\n')
if err != nil {
if err == io.EOF {
logger.Info("connection close")
// logger.Info("connection close")
h.activeConn.Delete(client)
} else {
logger.Warn(err)

View File

@@ -83,7 +83,7 @@ func ListenAndServe(listener net.Listener, handler tcp.Handler, closeChan <-chan
break
}
// handle
logger.Info("accept link")
// logger.Info("accept link")
ClientCounter++
waitDone.Add(1)
go func() {