Skip to content

Commit

Permalink
Fix up tests for change to NewReporter()
Browse files Browse the repository at this point in the history
  • Loading branch information
bboreham committed Jun 8, 2017
1 parent 9f6ccb6 commit 5e8c0a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions probe/kubernetes/reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func TestReporter(t *testing.T) {
pod2ID := report.MakePodNodeID(pod2UID)
serviceID := report.MakeServiceNodeID(serviceUID)
hr := controls.NewDefaultHandlerRegistry()
rpt, _ := kubernetes.NewReporter(newMockClient(), nil, "", "foo", nil, hr, 0).Report()
rpt, _ := kubernetes.NewReporter(newMockClient(), nil, "", "foo", nil, hr, "", 0).Report()

// Reporter should have added the following pods
for _, pod := range []struct {
Expand Down Expand Up @@ -258,7 +258,7 @@ func TestTagger(t *testing.T) {
}))

hr := controls.NewDefaultHandlerRegistry()
rpt, err := kubernetes.NewReporter(newMockClient(), nil, "", "", nil, hr, 0).Tag(rpt)
rpt, err := kubernetes.NewReporter(newMockClient(), nil, "", "", nil, hr, "", 0).Tag(rpt)
if err != nil {
t.Errorf("Unexpected error: %v", err)
}
Expand Down Expand Up @@ -287,7 +287,7 @@ func TestReporterGetLogs(t *testing.T) {
client := newMockClient()
pipes := mockPipeClient{}
hr := controls.NewDefaultHandlerRegistry()
reporter := kubernetes.NewReporter(client, pipes, "", "", nil, hr, 0)
reporter := kubernetes.NewReporter(client, pipes, "", "", nil, hr, "", 0)

// Should error on invalid IDs
{
Expand Down

0 comments on commit 5e8c0a0

Please sign in to comment.