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 60ddc87 commit c809878
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 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,7 @@ func BenchmarkProcessFn(b *testing.B) {
}

func TestProbeConvertEvent(t *testing.T) {
os.Setenv(IncludeDBOperationEnvVar, "true")

Check failure on line 74 in internal/pkg/instrumentation/bpf/database/sql/probe_test.go

View workflow job for this annotation

GitHub Actions / lint

unhandled-error: Unhandled error in call to function os.Setenv (revive)
start := time.Unix(0, time.Now().UnixNano()) // No wall clock.
end := start.Add(1 * time.Second)

Expand Down

0 comments on commit c809878

Please sign in to comment.