From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Sun, 12 Mar 2023 14:22:58 +0000 (+0800) Subject: fix X-Git-Tag: v0.24.3 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=508d9f81ff82d2e91b84af11fef5da5515bf7d6f;p=part%2F.git fix --- diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 309c5db..a8f3826 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/web/Web_test.go b/web/Web_test.go index bab2370..a42b464 100644 --- a/web/Web_test.go +++ b/web/Web_test.go @@ -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{