aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2024-10-30 12:17:39 +0100
committerAyke <[email protected]>2024-11-01 08:48:19 +0100
commit1ac26d3d2ffb201e820a024ccbe47b71430de96e (patch)
tree60460620f881a3fb7a54303cc14531a143b3bb9f
parent0edeaf657f4d1024f60ca438084c61c8139dd566 (diff)
downloadtinygo-1ac26d3d2ffb201e820a024ccbe47b71430de96e.tar.gz
tinygo-1ac26d3d2ffb201e820a024ccbe47b71430de96e.zip
test: run TestWasmExportJS tests in parallel
-rw-r--r--main_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main_test.go b/main_test.go
index 136128d51..14b3d1809 100644
--- a/main_test.go
+++ b/main_test.go
@@ -728,6 +728,7 @@ func TestWasmFuncOf(t *testing.T) {
// Test //go:wasmexport in JavaScript (using NodeJS).
func TestWasmExportJS(t *testing.T) {
+ t.Parallel()
type testCase struct {
name string
buildMode string
@@ -738,7 +739,9 @@ func TestWasmExportJS(t *testing.T) {
{name: "c-shared", buildMode: "c-shared"},
}
for _, tc := range tests {
+ tc := tc
t.Run(tc.name, func(t *testing.T) {
+ t.Parallel()
// Build the wasm binary.
tmpdir := t.TempDir()
options := optionsFromTarget("wasm", sema)