Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed Oct 10, 2020
1 parent adc2758 commit 3f8b080
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 46 deletions.
1 change: 0 additions & 1 deletion core/discov/internal/listener.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//go:generate mockgen -package internal -destination listener_mock.go -source listener.go Listener
package internal

type Listener interface {
Expand Down
45 changes: 0 additions & 45 deletions core/discov/internal/listener_mock.go

This file was deleted.

4 changes: 4 additions & 0 deletions core/discov/publisher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ func TestPublisher_keepAliveAsyncQuit(t *testing.T) {
defer ctrl.Finish()
const id clientv3.LeaseID = 1
cli := internal.NewMockEtcdClient(ctrl)
cli.EXPECT().ActiveConnection()
cli.EXPECT().Close()
defer cli.Close()
cli.ActiveConnection()
restore := setMockClient(cli)
defer restore()
cli.EXPECT().Ctx().AnyTimes()
Expand Down

0 comments on commit 3f8b080

Please sign in to comment.