OSDN Git Service

modify ci
[bytom/vapor.git] / vendor / github.com / go-kit / kit / sd / consul / registrar_test.go
diff --git a/vendor/github.com/go-kit/kit/sd/consul/registrar_test.go b/vendor/github.com/go-kit/kit/sd/consul/registrar_test.go
deleted file mode 100644 (file)
index edc7723..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-package consul
-
-import (
-       "testing"
-
-       stdconsul "github.com/hashicorp/consul/api"
-
-       "github.com/go-kit/kit/log"
-)
-
-func TestRegistrar(t *testing.T) {
-       client := newTestClient([]*stdconsul.ServiceEntry{})
-       p := NewRegistrar(client, testRegistration, log.NewNopLogger())
-       if want, have := 0, len(client.entries); want != have {
-               t.Errorf("want %d, have %d", want, have)
-       }
-
-       p.Register()
-       if want, have := 1, len(client.entries); want != have {
-               t.Errorf("want %d, have %d", want, have)
-       }
-
-       p.Deregister()
-       if want, have := 0, len(client.entries); want != have {
-               t.Errorf("want %d, have %d", want, have)
-       }
-}