diff options
author | 2025-02-05 16:39:18 -0800 | |
---|---|---|
committer | 2025-02-06 23:43:51 +0000 | |
commit | aba8cd956a1f0cca137f6ab02b9791aac9435efd (patch) | |
tree | c5bd44db386b2f00d7e97af41999677e65f22e1b /sdk/exports_test.go | |
parent | e4762bac43777e5a3f0472ed37342c59bf29d626 (diff) |
Add t.Parallel() to SDK tests
Reduces time to run go test ./sdk from 44 seconds to 22.5 seconds.
Requires moving snapshotTestCustomizations from a map to a struct
with individual fields to avoid concurrent map accesses between
subtests.
Test: go test ./sdk
Change-Id: Id6f451ba9cbace8bc7ea915033a795456b85cf3f
Diffstat (limited to 'sdk/exports_test.go')
-rw-r--r-- | sdk/exports_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sdk/exports_test.go b/sdk/exports_test.go index 9d0a24210..5a7ce845a 100644 --- a/sdk/exports_test.go +++ b/sdk/exports_test.go @@ -20,6 +20,7 @@ import ( // Ensure that module_exports generates a module_exports_snapshot module. func TestModuleExportsSnapshot(t *testing.T) { + t.Parallel() packageBp := ` module_exports { name: "myexports", |