summaryrefslogtreecommitdiff
path: root/sdk/license_sdk_test.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2025-02-05 16:39:18 -0800
committer Colin Cross <ccross@android.com> 2025-02-06 23:43:51 +0000
commitaba8cd956a1f0cca137f6ab02b9791aac9435efd (patch)
treec5bd44db386b2f00d7e97af41999677e65f22e1b /sdk/license_sdk_test.go
parente4762bac43777e5a3f0472ed37342c59bf29d626 (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/license_sdk_test.go')
-rw-r--r--sdk/license_sdk_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/sdk/license_sdk_test.go b/sdk/license_sdk_test.go
index 754f01961..eb8112ba7 100644
--- a/sdk/license_sdk_test.go
+++ b/sdk/license_sdk_test.go
@@ -21,6 +21,7 @@ import (
)
func TestSnapshotWithPackageDefaultLicense(t *testing.T) {
+ t.Parallel()
result := android.GroupFixturePreparers(
prepareForSdkTestWithJava,
android.PrepareForTestWithLicenses,