From c80987833f881c8bc2ee63392b3cfc328afbc05c Mon Sep 17 00:00:00 2001 From: Mike Dame Date: Wed, 20 Nov 2024 10:43:31 -0500 Subject: [PATCH] Set new env var in test --- internal/pkg/instrumentation/bpf/database/sql/probe_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/pkg/instrumentation/bpf/database/sql/probe_test.go b/internal/pkg/instrumentation/bpf/database/sql/probe_test.go index 80d490eaa..b810cbc02 100644 --- a/internal/pkg/instrumentation/bpf/database/sql/probe_test.go +++ b/internal/pkg/instrumentation/bpf/database/sql/probe_test.go @@ -4,6 +4,7 @@ package sql import ( + "os" "testing" "time" @@ -70,6 +71,7 @@ func BenchmarkProcessFn(b *testing.B) { } func TestProbeConvertEvent(t *testing.T) { + os.Setenv(IncludeDBOperationEnvVar, "true") start := time.Unix(0, time.Now().UnixNano()) // No wall clock. end := start.Add(1 * time.Second)