Skip to content

Commit

Permalink
Merge pull request #771 from nr-swilloughby/nrstantest
Browse files Browse the repository at this point in the history
fixed clm for unit test
  • Loading branch information
nr-swilloughby authored Aug 10, 2023
2 parents 88ae552 + c8f3fba commit f4aa806
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion v3/integrations/nrstan/test/go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
module github.com/newrelic/go-agent/v3/integrations/nrstan/test

// This module exists to avoid a dependency on
// github.com/nats-io/nats-streaming-server in nrstan.
go 1.19

require (
github.com/nats-io/nats-streaming-server v0.24.3
github.com/nats-io/stan.go v0.10.3
github.com/nats-io/stan.go v0.10.4
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3/integrations/nrstan v0.0.0
)

replace github.com/newrelic/go-agent/v3/integrations/nrstan => ../

replace github.com/newrelic/go-agent/v3 => ../../..
2 changes: 1 addition & 1 deletion v3/integrations/nrstan/test/nrstan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestMain(m *testing.M) {
}

func createTestApp() integrationsupport.ExpectApp {
return integrationsupport.NewTestApp(integrationsupport.SampleEverythingReplyFn, integrationsupport.ConfigFullTraces, cfgFn)
return integrationsupport.NewTestApp(integrationsupport.SampleEverythingReplyFn, integrationsupport.ConfigFullTraces, cfgFn, newrelic.ConfigCodeLevelMetricsEnabled(false))
}

var cfgFn = func(cfg *newrelic.Config) {
Expand Down

0 comments on commit f4aa806

Please sign in to comment.