Skip to content

Commit

Permalink
prober/multihttp: use k6 binary from dest repo for make sm-k6
Browse files Browse the repository at this point in the history
  • Loading branch information
roobre committed Dec 10, 2024
1 parent 26d6163 commit 55e7688
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/prober/multihttp/script_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"net/http"
"net/http/httptest"
"path/filepath"
"runtime"
"strings"
"testing"

Expand Down Expand Up @@ -852,7 +853,8 @@ func TestSettingsToScript(t *testing.T) {
t.Cleanup(cancel)
// logger := zerolog.New(zerolog.NewTestWriter(t))
logger := zerolog.Nop()
k6path := filepath.Join(testhelper.ModuleDir(t), "dist", "k6")
k6path := filepath.Join(testhelper.ModuleDir(t), "dist", runtime.GOOS+"-"+runtime.GOARCH, "sm-k6")
t.Log(k6path)
runner := k6runner.New(k6runner.RunnerOpts{Uri: k6path})

prober, err := NewProber(ctx, check, logger, runner, http.Header{})
Expand Down

0 comments on commit 55e7688

Please sign in to comment.