Skip to content
Snippets Groups Projects
Commit f1908a08 authored by Patrick's avatar Patrick
Browse files

modify

parent cbc59d3c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment