This is an automated email from the ASF dual-hosted git repository.

soulbird pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-go-plugin-runner.git


The following commit(s) were added to refs/heads/master by this push:
     new ccd171d  fix time.Since issue (#125)
ccd171d is described below

commit ccd171d45d59ec252e200672145d483f1661abf1
Author: kvii <[email protected]>
AuthorDate: Mon Jan 16 09:18:53 2023 +0800

    fix time.Since issue (#125)
---
 cmd/go-runner/plugins/limit_req_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/go-runner/plugins/limit_req_test.go 
b/cmd/go-runner/plugins/limit_req_test.go
index f5e51c7..8b0516c 100644
--- a/cmd/go-runner/plugins/limit_req_test.go
+++ b/cmd/go-runner/plugins/limit_req_test.go
@@ -54,7 +54,7 @@ func TestLimitReq(t *testing.T) {
        }
        assert.Equal(t, 0, rejectN)
        t.Logf("Start: %v, now: %v", start, time.Now())
-       assert.True(t, time.Now().Sub(start) >= 1*time.Second)
+       assert.True(t, time.Since(start) >= 1*time.Second)
 }
 
 func TestLimitReq_YouShouldNotPass(t *testing.T) {

Reply via email to