From f1908a08ab7f907b78699c54f39fe23afa06768c Mon Sep 17 00:00:00 2001 From: Patrick <dreamlike.sky@foxmail.com> Date: Fri, 31 Jan 2020 12:12:12 +0800 Subject: [PATCH] modify --- protocol/rest/rest_protocol_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/protocol/rest/rest_protocol_test.go b/protocol/rest/rest_protocol_test.go index bac87542f..739f00b86 100644 --- a/protocol/rest/rest_protocol_test.go +++ b/protocol/rest/rest_protocol_test.go @@ -10,7 +10,6 @@ import ( "github.com/apache/dubbo-go/protocol/rest/rest_interface" "github.com/stretchr/testify/assert" "strings" - "sync" "testing" "time" ) @@ -95,10 +94,6 @@ func TestJsonrpcProtocol_Export(t *testing.T) { fmt.Println(url.Path) _, ok := proto.(*RestProtocol).ExporterMap().Load(strings.TrimPrefix(url.Path, "/")) assert.True(t, ok) - var waitGroutp = sync.WaitGroup{} - waitGroutp.Add(1) - waitGroutp.Wait() - exporter.Unexport() _, ok = proto.(*RestProtocol).ExporterMap().Load(strings.TrimPrefix(url.Path, "/")) assert.False(t, ok) -- GitLab