diff --git a/src/newrelic/integration/test.go b/src/newrelic/integration/test.go index d78527e43..66e8e5079 100644 --- a/src/newrelic/integration/test.go +++ b/src/newrelic/integration/test.go @@ -516,7 +516,8 @@ func (t *Test) comparePhpPackages(harvest *newrelic.Harvest) { t.Fatal(fmt.Errorf("EXPECTED_PHP_PACKAGES used but no packaged detected in environment!")) } } else { - expectedPackages = nil + // no configuration given for package (no EXPECT_PHP_PACKAGES in test case) so don't run test + return } audit, err := newrelic.IntegrationData(harvest.PhpPackages, newrelic.AgentRunID("?? agent run id"), time.Now()) @@ -530,10 +531,6 @@ func (t *Test) comparePhpPackages(harvest *newrelic.Harvest) { return } - fmt.Printf("harvest.PhpPackages %+v\n", harvest.PhpPackages) - fmt.Printf("actualPackages %+v\n", actualPackages) - fmt.Printf("expectedPackages %+v\n", expectedPackages) - if nil != harvest.PhpPackages && 0 < harvest.PhpPackages.NumSaved() { if nil == expectedPackages { t.Fail(fmt.Errorf("No expected PHP packages, harvest contains %+v\n", actualPackages))