mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 06:23:39 +00:00
test: run TestWasmExportJS tests in parallel
This commit is contained in:
@@ -728,6 +728,7 @@ func TestWasmFuncOf(t *testing.T) {
|
|||||||
|
|
||||||
// Test //go:wasmexport in JavaScript (using NodeJS).
|
// Test //go:wasmexport in JavaScript (using NodeJS).
|
||||||
func TestWasmExportJS(t *testing.T) {
|
func TestWasmExportJS(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
type testCase struct {
|
type testCase struct {
|
||||||
name string
|
name string
|
||||||
buildMode string
|
buildMode string
|
||||||
@@ -738,7 +739,9 @@ func TestWasmExportJS(t *testing.T) {
|
|||||||
{name: "c-shared", buildMode: "c-shared"},
|
{name: "c-shared", buildMode: "c-shared"},
|
||||||
}
|
}
|
||||||
for _, tc := range tests {
|
for _, tc := range tests {
|
||||||
|
tc := tc
|
||||||
t.Run(tc.name, func(t *testing.T) {
|
t.Run(tc.name, func(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
// Build the wasm binary.
|
// Build the wasm binary.
|
||||||
tmpdir := t.TempDir()
|
tmpdir := t.TempDir()
|
||||||
options := optionsFromTarget("wasm", sema)
|
options := optionsFromTarget("wasm", sema)
|
||||||
|
|||||||
Reference in New Issue
Block a user