From 621b857eab683e644cc0037b50bf3a94180cc15a Mon Sep 17 00:00:00 2001 From: Tiago Queiroz Date: Wed, 15 Nov 2023 10:24:01 +0100 Subject: [PATCH] remove debug --- .buildkite/scripts/steps/integration_tests.sh | 2 +- testing/integration/logs_ingestion_test.go | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.buildkite/scripts/steps/integration_tests.sh b/.buildkite/scripts/steps/integration_tests.sh index cfec71148a5..2a129193267 100755 --- a/.buildkite/scripts/steps/integration_tests.sh +++ b/.buildkite/scripts/steps/integration_tests.sh @@ -23,7 +23,7 @@ AGENT_PACKAGE_VERSION="${OVERRIDE_AGENT_PACKAGE_VERSION}" DEV=true EXTERNAL=true # Run integration tests set +e -AGENT_VERSION="${OVERRIDE_TEST_AGENT_VERSION}" TEST_INTEG_CLEAN_ON_EXIT=true STACK_PROVISIONER="$STACK_PROVISIONER" SNAPSHOT=true mage -v $MAGE_TARGET $MAGE_SUBTARGET +AGENT_VERSION="${OVERRIDE_TEST_AGENT_VERSION}" TEST_INTEG_CLEAN_ON_EXIT=true STACK_PROVISIONER="$STACK_PROVISIONER" SNAPSHOT=true mage $MAGE_TARGET $MAGE_SUBTARGET TESTS_EXIT_STATUS=$? set -e diff --git a/testing/integration/logs_ingestion_test.go b/testing/integration/logs_ingestion_test.go index d707d2504f8..68418646215 100644 --- a/testing/integration/logs_ingestion_test.go +++ b/testing/integration/logs_ingestion_test.go @@ -195,21 +195,11 @@ func testMonitoringLogsAreShipped( func findESDocs(t *testing.T, findFn func() (estools.Documents, error)) estools.Documents { var docs estools.Documents - start := time.Now() - defer func() { - fmt.Println(">>>>>>>>>>>>>>>>>>>> Took", time.Now().Sub(start)) - }() - count := 0 require.Eventually( t, func() bool { - count++ - fmt.Println(">>>>>>>>>>>>>>>>>>>> Iteration ", count) var err error docs, err = findFn() - if err != nil { - fmt.Println(">>>>>>>>>>>>>>>>>>>> error tying to fetch ES docs: ", err) - } return err == nil }, 8*time.Minute,