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

remove some thing

parent 61af2d03
No related branches found
No related tags found
No related merge requests found
......@@ -28,25 +28,11 @@ import (
import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/extension"
"github.com/apache/dubbo-go/config"
"github.com/apache/dubbo-go/metadata/service"
"github.com/apache/dubbo-go/registry"
)
func prepareMetadataServiceForTest() {
config.GetApplicationConfig().MetadataType = "mock"
extension.SetMetadataService("mock", func() (service.MetadataService, error) {
return &mockMetadataService{
urls: []interface{}{"mock://localhost:8080?a=b"},
}, nil
})
}
func TestMetadataServiceURLParamsMetadataCustomizer(t *testing.T) {
prepareMetadataServiceForTest()
msup := &metadataServiceURLParamsMetadataCustomizer{exceptKeys: gxset.NewSet()}
assert.Equal(t, 0, msup.GetPriority())
......
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