]> 127.0.0.1 Git - part/.git/commitdiff
fix v0.24.3
authorqydysky <32743305+qydysky@users.noreply.github.com>
Sun, 12 Mar 2023 14:22:58 +0000 (22:22 +0800)
committerqydysky <32743305+qydysky@users.noreply.github.com>
Sun, 12 Mar 2023 14:22:58 +0000 (22:22 +0800)
.github/workflows/test.yml
web/Web_test.go

index 309c5db5e90e3c108b501005b9e4d907e9cde082..a8f3826eea7f2a3790173641c427e1aeb3a0614c 100644 (file)
@@ -32,4 +32,4 @@ jobs:
         go test -count 1 -timeout 10s -v -race github.com/qydysky/part/funcCtrl
         go test -count 1 -timeout 30s -v -race github.com/qydysky/part/msgq
         go test -count 1 -timeout 5s -v -race github.com/qydysky/part/sync
-        go test -count 1 -timeout 5s -v -race github.com/qydysky/part/web
+        go test -count 1 -timeout 10s -v -race github.com/qydysky/part/web
index bab23708e24dda2694b3d50036ff92edb2314270..a42b464176e577a8e84573996f33dbb04215ee13 100644 (file)
@@ -22,6 +22,8 @@ func Test_Server(t *testing.T) {
                },
        })
 
+       time.Sleep(time.Second)
+
        r := reqf.New()
        {
                r.Reqf(reqf.Rval{
@@ -53,6 +55,8 @@ func Test_ServerSyncMap(t *testing.T) {
                ResStruct{0, "ok", d{"0", []string{"0"}, map[string]int{"0": 1}}}.Write(w)
        })
 
+       time.Sleep(time.Second)
+
        r := reqf.New()
        {
                r.Reqf(reqf.Rval{