Skip to content

Commit

Permalink
remove usages of fmt.Println from aws/utils_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyers-elastic committed Jul 20, 2022
1 parent 271e8fb commit 0eaf7e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/metricbeat/module/aws/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func TestGetMetricDataPerRegion(t *testing.T) {
reqGetMetricData := mockSvc.GetMetricDataRequest(getMetricDataInput)
getMetricDataOutput, err := reqGetMetricData.Send(context.TODO())
if err != nil {
fmt.Println("failed getMetricDataPerRegion: ", err)
_ = fmt.Errorf("failed getMetricDataPerRegion: %w", err)
t.FailNow()
}

Expand Down Expand Up @@ -278,7 +278,7 @@ func TestGetMetricDataResults(t *testing.T) {
}
getMetricDataResults, err := GetMetricDataResults(metricDataQueries, mockSvc, startTime, endTime)
if err != nil {
fmt.Println("failed getMetricDataPerRegion: ", err)
_ = fmt.Errorf("failed getMetricDataPerRegion: %w", err)
t.FailNow()
}

Expand Down

0 comments on commit 0eaf7e6

Please sign in to comment.