Skip to content

Commit

Permalink
Remove 'master' where not necessary and add tracking issues. (#4022)
Browse files Browse the repository at this point in the history
  • Loading branch information
markusthoemmes authored Sep 9, 2020
1 parent 8e63db0 commit 163dab1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/adapter/v2/cloudevents_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type mockReporter struct {
}

var (
fakeMasterURL = "test-source"
fakeURL = "test-source"
)

func (r *mockReporter) ReportEventCount(args *source.ReportArgs, responseCode int) error {
Expand Down Expand Up @@ -70,7 +70,7 @@ func TestNewCloudEventsClient_send(t *testing.T) {
}
for n, tc := range testCases {
t.Run(n, func(t *testing.T) {
ceClient, err := NewCloudEventsClient(fakeMasterURL, tc.ceOverrides, &mockReporter{})
ceClient, err := NewCloudEventsClient(fakeURL, tc.ceOverrides, &mockReporter{})
if err != nil {
t.Fail()
}
Expand Down Expand Up @@ -125,7 +125,7 @@ func TestNewCloudEventsClient_request(t *testing.T) {
}
for n, tc := range testCases {
t.Run(n, func(t *testing.T) {
ceClient, err := NewCloudEventsClient(fakeMasterURL, tc.ceOverrides, &mockReporter{})
ceClient, err := NewCloudEventsClient(fakeURL, tc.ceOverrides, &mockReporter{})
if err != nil {
t.Fail()
}
Expand Down
2 changes: 1 addition & 1 deletion test/lib/nodes/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (n *NodesClient) RandomWorkerNode() (*corev1.Node, error) {
" it must be a worker (Minikube, CRC)", node.Name)
return &node, nil
} else {
role := "master"
role := "master" // see https://github.com/kubernetes/kubeadm/issues/2200 for replacement.
n.logger.Infof("Filtering %d nodes, to not contain role: %s", nodesCount, role)
workers := FilterOutByRole(nodes.Items, role)
n.logger.Infof("Found %d worker(s)", len(workers))
Expand Down

0 comments on commit 163dab1

Please sign in to comment.