Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianToledano committed Oct 17, 2024
1 parent 49598dd commit 8656f1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/v2/internal/broadcast/broadcaster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func Test_newBroadcaster(t *testing.T) {
opts: []Option{
withMode(BroadcastSync),
},
want: &CometBftBroadcaster{},
want: &CometBFTBroadcaster{},
},
{
name: "unsupported_consensus",
Expand Down
8 changes: 4 additions & 4 deletions client/v2/internal/broadcast/comet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestNewCometBftBroadcaster(t *testing.T) {
tests := []struct {
name string
opts []Option
want *CometBftBroadcaster
want *CometBFTBroadcaster
wantErr bool
}{
{
Expand All @@ -31,15 +31,15 @@ func TestNewCometBftBroadcaster(t *testing.T) {
withMode(BroadcastSync),
withJsonCodec(cdc),
},
want: &CometBftBroadcaster{
want: &CometBFTBroadcaster{
mode: BroadcastSync,
cdc: cdc,
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got, err := NewCometBftBroadcaster("localhost:26657", tt.opts...)
got, err := NewCometBFTBroadcaster("localhost:26657", tt.opts...)
if (err != nil) != tt.wantErr {
t.Errorf("NewCometBftBroadcaster() error = %v, wantErr %v", err, tt.wantErr)
return
Expand All @@ -53,7 +53,7 @@ func TestNewCometBftBroadcaster(t *testing.T) {
func TestCometBftBroadcaster_Broadcast(t *testing.T) {
ctrl := gomock.NewController(t)
cometMock := mockrpc.NewMockCometRPC(ctrl)
c := CometBftBroadcaster{
c := CometBFTBroadcaster{
rpcClient: cometMock,
mode: BroadcastSync,
cdc: cdc,
Expand Down

0 comments on commit 8656f1f

Please sign in to comment.