Skip to content

Commit

Permalink
use GetChannelGroup in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Oct 17, 2023
1 parent 1100180 commit 2212eea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@ func TestHubBroadcastPublication(t *testing.T) {
for _, tc := range tcs {
t.Run(tc.name, func(t *testing.T) {
n := defaultTestNode()
n.config.GetChannelGroup = func(channel string) string {
return channel
}
defer func() { _ = n.Shutdown(context.Background()) }()

ctx, cancelFn := context.WithCancel(context.Background())
Expand Down

0 comments on commit 2212eea

Please sign in to comment.