Skip to content

Commit

Permalink
update collectionNode mock to use testing.TB interface
Browse files Browse the repository at this point in the history
  • Loading branch information
peterargue committed Jan 17, 2025
1 parent 97b7ba9 commit e075836
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions engine/access/rpc/connection/node_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ func newCollectionNode(tb testing.TB) *collectionNode {
}
}

func (cn *collectionNode) start(t *testing.T) {
func (cn *collectionNode) start(tb testing.TB) {
if cn.handler == nil {
t.Fatalf("collectionNode must be initialized using newCollectionNode")
tb.Fatalf("collectionNode must be initialized using newCollectionNode")
}

cn.setupNode(t)
cn.setupNode(tb)
access.RegisterAccessAPIServer(cn.server, cn.handler)
cn.node.start(t)
cn.node.start(tb)
}

func (cn *collectionNode) stop(t *testing.T) {
cn.node.stop(t)
func (cn *collectionNode) stop(tb testing.TB) {
cn.node.stop(tb)
}

0 comments on commit e075836

Please sign in to comment.