From 97ccfaf621e66e499de645f8ca85c23fd6538e08 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 | 3 +++ 1 file changed, 3 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..1bea454e9 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,8 @@ func BenchmarkProcessFn(b *testing.B) { } func TestProbeConvertEvent(t *testing.T) { + err := os.Setenv(IncludeDBOperationEnvVar, "true") + assert.NoError(t, err) start := time.Unix(0, time.Now().UnixNano()) // No wall clock. end := start.Add(1 * time.Second)