mirror of
https://github.com/HDT3213/godis.git
synced 2025-09-26 21:01:17 +08:00
update github actions go version
This commit is contained in:
4
.github/workflows/coverall.yml
vendored
4
.github/workflows/coverall.yml
vendored
@@ -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
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -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() {
|
||||
|
Reference in New Issue
Block a user