Skip to content

Commit 9bf0211

Browse files
committed
update github actions go version
1 parent d6bbf03 commit 9bf0211

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/coverall.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
redis version: '5'
2424
number of databases: 16
2525

26-
- uses: actions/setup-go@v3
26+
- uses: actions/setup-go@v5
2727
with:
28-
go-version: '1.19'
28+
go-version: '1.23'
2929
- run: go test -v -coverprofile=profile.cov ./...
3030

3131
- uses: shogo82148/actions-goveralls@v1

redis/server/gnet/server_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"bufio"
55
"net"
66
"testing"
7+
"time"
78

89
"github.com/hdt3213/godis/database"
910
)
@@ -19,7 +20,7 @@ func TestListenAndServe(t *testing.T) {
1920
db := database.NewStandaloneServer()
2021
server := NewGnetServer(db)
2122
go server.Run(addr)
22-
23+
time.Sleep(2*time.Second)
2324
conn, err := net.Dial("tcp", addr)
2425
if err != nil {
2526
t.Error(err)

0 commit comments

Comments
 (0)