Browse Source

add more tests

kevin 4 years ago
parent
commit
e133ffd820
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/discov/subscriber_test.go

+ 2 - 0
core/discov/subscriber_test.go

@@ -169,6 +169,8 @@ func TestContainer(t *testing.T) {
 		for _, exclusive := range exclusives {
 			t.Run(test.name, func(t *testing.T) {
 				c := newContainer(exclusive)
+				assert.Nil(t, c.getValues())
+
 				for _, order := range test.do {
 					if order.act == actionAdd {
 						c.OnAdd(internal.KV{