Skip to content

Commit

Permalink
fix for comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ziqi Zhao <[email protected]>
  • Loading branch information
fatsheep9146 committed Oct 11, 2022
1 parent d726a12 commit b4fc47e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions receiver/awscontainerinsightreceiver/receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func TestCollectData(t *testing.T) {
require.NotNil(t, metricsReceiver)

r := metricsReceiver.(*awsContainerInsightReceiver)
require.Error(t, r.Start(context.Background(), nil))
_ = r.Start(context.Background(), nil)
ctx := context.Background()
r.k8sapiserver = &MockK8sAPIServer{}
r.cadvisor = &MockCadvisor{}
Expand All @@ -116,7 +116,7 @@ func TestCollectDataWithErrConsumer(t *testing.T) {
require.NotNil(t, metricsReceiver)

r := metricsReceiver.(*awsContainerInsightReceiver)
require.Error(t, r.Start(context.Background(), nil))
_ = r.Start(context.Background(), nil)
r.cadvisor = &MockCadvisor{}
r.k8sapiserver = &MockK8sAPIServer{}
ctx := context.Background()
Expand All @@ -138,7 +138,7 @@ func TestCollectDataWithECS(t *testing.T) {
require.NotNil(t, metricsReceiver)

r := metricsReceiver.(*awsContainerInsightReceiver)
require.Error(t, r.Start(context.Background(), nil))
_ = r.Start(context.Background(), nil)
ctx := context.Background()

r.cadvisor = &MockCadvisor{}
Expand Down

0 comments on commit b4fc47e

Please sign in to comment.