From ac00dd28136351902851fbaa057a706e282c536f Mon Sep 17 00:00:00 2001
From: kaiyan-sheng <kaiyan.sheng@elastic.co>
Date: Thu, 15 Oct 2020 07:16:06 -0600
Subject: [PATCH] Disable TestFetch in s3_request_integration_test.go (#21828)

* Disable TestFetch in s3_request_integration_test.go

* remove debug leftover
---
 .../aws/s3_daily_storage/s3_daily_storage_integration_test.go    | 1 -
 .../module/aws/s3_request/s3_request_integration_test.go         | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/x-pack/metricbeat/module/aws/s3_daily_storage/s3_daily_storage_integration_test.go b/x-pack/metricbeat/module/aws/s3_daily_storage/s3_daily_storage_integration_test.go
index 4042f332b8e..a398926b462 100644
--- a/x-pack/metricbeat/module/aws/s3_daily_storage/s3_daily_storage_integration_test.go
+++ b/x-pack/metricbeat/module/aws/s3_daily_storage/s3_daily_storage_integration_test.go
@@ -33,7 +33,6 @@ func TestFetch(t *testing.T) {
 		mtest.CheckEventField("aws.dimensions.StorageType", "string", event, t)
 		mtest.CheckEventField("aws.s3.metrics.BucketSizeBytes.avg", "float", event, t)
 		mtest.CheckEventField("aws.s3.metrics.NumberOfObjects.avg", "float", event, t)
-		break
 	}
 }
 
diff --git a/x-pack/metricbeat/module/aws/s3_request/s3_request_integration_test.go b/x-pack/metricbeat/module/aws/s3_request/s3_request_integration_test.go
index 8103acd13a4..c7b37de2af3 100644
--- a/x-pack/metricbeat/module/aws/s3_request/s3_request_integration_test.go
+++ b/x-pack/metricbeat/module/aws/s3_request/s3_request_integration_test.go
@@ -17,6 +17,7 @@ import (
 )
 
 func TestFetch(t *testing.T) {
+	t.Skip("flaky test: https://github.com/elastic/beats/issues/21826")
 	config := mtest.GetConfigForTest(t, "s3_request", "60s")
 
 	metricSet := mbtest.NewReportingMetricSetV2Error(t, config)