Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
test: fix wasm test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jul 15, 2021
1 parent 70c48cc commit db815ff
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion browser_integration_native_test.go
Expand Up @@ -8,6 +8,7 @@ import (
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"testing"

Expand All @@ -17,8 +18,15 @@ import (
ma "github.com/multiformats/go-multiaddr"
)

func goexe() string {
if runtime.GOOS == "windows" {
return ".exe"
}
return ""
}

var (
wasmBrowserTestBin = "wasmbrowsertest"
wasmBrowserTestBin = "wasmbrowsertest" + goexe()
wasmBrowserTestDir = filepath.Join("tools", "bin")
wasmBrowserTestPackage = "github.com/agnivade/wasmbrowsertest"
)
Expand Down

0 comments on commit db815ff

Please sign in to comment.