Skip to content

Commit

Permalink
Set new env var in test
Browse files Browse the repository at this point in the history
  • Loading branch information
damemi committed Nov 20, 2024
1 parent c56a75b commit df3735a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/pkg/instrumentation/bpf/database/sql/probe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package sql

import (
"os"
"testing"
"time"

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit df3735a

Please sign in to comment.