summaryrefslogtreecommitdiff
path: root/java/sdk_test.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2024-07-18 15:35:44 -0700
committer Colin Cross <ccross@android.com> 2024-07-29 14:00:46 -0700
commite0aa52f6c720305113fb935386ae53bd4ec81d88 (patch)
tree3b5d47d876568c4908ffe06a0e0b453fb85e8bab /java/sdk_test.go
parentea1b3b78b8544f9ca009442800f8784d835856f4 (diff)
Run TestClasspath subtests in parallel
Call t.Parallel() to make the subtests of TestClasspath run in parallel, which drops the runtime from 12 seconds to 1.7 seconds. Test: TestClasspath Flag: EXEMPT refactor Change-Id: Id2194f6b5f925b480280e9cf8da5d5767a467430
Diffstat (limited to 'java/sdk_test.go')
-rw-r--r--java/sdk_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/sdk_test.go b/java/sdk_test.go
index 9e8ba6ed0..2dac27af1 100644
--- a/java/sdk_test.go
+++ b/java/sdk_test.go
@@ -388,7 +388,9 @@ func TestClasspath(t *testing.T) {
},
}
+ t.Parallel()
t.Run("basic", func(t *testing.T) {
+ t.Parallel()
testClasspathTestCases(t, classpathTestcases, false)
})
@@ -404,6 +406,7 @@ func testClasspathTestCases(t *testing.T, classpathTestcases []classpathTestCase
}
t.Run(testcase.name, func(t *testing.T) {
+ t.Parallel()
moduleType := "java_library"
if testcase.moduleType != "" {
moduleType = testcase.moduleType