From 508d9f81ff82d2e91b84af11fef5da5515bf7d6f Mon Sep 17 00:00:00 2001 From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Sun, 12 Mar 2023 22:22:58 +0800 Subject: [PATCH] fix --- .github/workflows/test.yml | 2 +- web/Web_test.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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{ -- 2.39.2