Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fix: etcd discovery mechani…
Browse files Browse the repository at this point in the history
…sm on grpc with idle manager
  • Loading branch information
kevwan committed Jan 21, 2025
1 parent 107a9f4 commit 8e44511
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions core/discov/subscriber_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,11 @@ func TestWithExactMatch(t *testing.T) {
func TestSubscriberClose(t *testing.T) {
l := newContainer(false)
sub := &Subscriber{
endpoints: []string{"localhost:2379"},
endpoints: []string{"localhost:12379"},
key: "foo",
items: l,
}
_, err := NewSubscriber(sub.endpoints, sub.key, WithExactMatch())
assert.NoError(t, err)
sub.Close()
assert.Empty(t, sub.items.listeners)
assert.NotPanics(t, func() {
sub.Close()
})
}

0 comments on commit 8e44511

Please sign in to comment.