Skip to content

Commit

Permalink
[aggregator] Split up TCP and M3Msg clients (#2964)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdarulis authored Dec 2, 2020
1 parent ae0403a commit 0342a92
Show file tree
Hide file tree
Showing 7 changed files with 928 additions and 711 deletions.
9 changes: 3 additions & 6 deletions src/aggregator/aggregator/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,9 @@ func TestSetStreamOptions(t *testing.T) {
}

func TestSetAdminClient(t *testing.T) {
c, err := client.NewClient(client.NewOptions())
require.NoError(t, err)
value, ok := c.(client.AdminClient)
require.True(t, ok)
o := NewOptions().SetAdminClient(value)
require.True(t, value == o.AdminClient())
var c client.AdminClient = &client.M3MsgClient{}
o := NewOptions().SetAdminClient(c)
require.True(t, c == o.AdminClient())
}

func TestSetRuntimeOptionsManager(t *testing.T) {
Expand Down
Loading

0 comments on commit 0342a92

Please sign in to comment.