From a147ec716a5bf93a62563641b2dd5217a3d87c02 Mon Sep 17 00:00:00 2001 From: Chris Trombley Date: Tue, 15 Oct 2019 15:37:58 -0700 Subject: [PATCH] Fix some failing acceptance tests --- newrelic/resource_newrelic_alert_policy_channel_test.go | 4 ++-- newrelic/resource_newrelic_nrql_alert_condition_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/newrelic/resource_newrelic_alert_policy_channel_test.go b/newrelic/resource_newrelic_alert_policy_channel_test.go index ef7799014..2e53818f1 100644 --- a/newrelic/resource_newrelic_alert_policy_channel_test.go +++ b/newrelic/resource_newrelic_alert_policy_channel_test.go @@ -116,7 +116,7 @@ resource "newrelic_alert_policy_channel" "foo" { func testAccCheckNewRelicAlertPolicyChannelConfigUpdated(rName string) string { return fmt.Sprintf(` -resource "newrelic_alert_policy" "bar" { +resource "newrelic_alert_policy" "foo" { name = "tf-test-updated-%[1]s" } @@ -131,7 +131,7 @@ resource "newrelic_alert_channel" "foo" { } resource "newrelic_alert_policy_channel" "foo" { - policy_id = "${newrelic_alert_policy.bar.id}" + policy_id = "${newrelic_alert_policy.foo.id}" channel_id = "${newrelic_alert_channel.foo.id}" } `, rName) diff --git a/newrelic/resource_newrelic_nrql_alert_condition_test.go b/newrelic/resource_newrelic_nrql_alert_condition_test.go index 72acc9a69..758a32897 100644 --- a/newrelic/resource_newrelic_nrql_alert_condition_test.go +++ b/newrelic/resource_newrelic_nrql_alert_condition_test.go @@ -162,7 +162,7 @@ resource "newrelic_nrql_alert_condition" "foo" { } nrql { query = "SELECT uniqueCount(hostname) FROM ComputeSample" - since_value = "5" + since_value = "20" } value_function = "single_value" }