From bdb1762feb539a61609cee68435df6b16c81fb66 Mon Sep 17 00:00:00 2001 From: renjun Date: Sun, 29 Jan 2023 17:49:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E9=A3=9E=EF=BC=8C=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=97=A0=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- middleware/singleflight/singleflight_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/middleware/singleflight/singleflight_test.go b/middleware/singleflight/singleflight_test.go index 146f34f54..0627342cf 100644 --- a/middleware/singleflight/singleflight_test.go +++ b/middleware/singleflight/singleflight_test.go @@ -2,14 +2,12 @@ package singleflight import ( "context" + "github.com/go-kratos/kratos/v2/middleware" "github.com/go-kratos/kratos/v2/transport" "github.com/go-kratos/kratos/v2/transport/grpc" "sync" "testing" "time" - "xiaozhu/pkg/convert" - - "github.com/go-kratos/kratos/v2/middleware" ) type testVali struct { @@ -90,7 +88,7 @@ func TestNoUse(t *testing.T) { callNum++ mu.Unlock() time.Sleep(1*time.Second) - return convert.ToInt(in.in), nil + return in.out, nil } tests := []testVali{