summaryrefslogtreecommitdiff
path: root/java/genrule_test.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2025-01-29 15:53:21 -0800
committer Colin Cross <ccross@android.com> 2025-01-31 11:31:24 -0800
commit844cb6a6646454aaba28b602cf49284df32cdc9f (patch)
tree7c9ee579c7821f59b44e7a035b2a703fa5a2ab08 /java/genrule_test.go
parent03272a40f104893ae6082aaeb882216fec4eb1f3 (diff)
Add t.Parallel() to java tests
Speeds up go test ./java from 32 seconds to 9 seconds. Test: go test ./java Change-Id: I4c6640e787c0744c6dfda03b7382839b452e24cf
Diffstat (limited to 'java/genrule_test.go')
-rw-r--r--java/genrule_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/genrule_test.go b/java/genrule_test.go
index 1c294b286..b4e9d218d 100644
--- a/java/genrule_test.go
+++ b/java/genrule_test.go
@@ -31,6 +31,7 @@ func testGenruleContext(config android.Config) *android.TestContext {
}
func TestGenruleCmd(t *testing.T) {
+ t.Parallel()
fs := map[string][]byte{
"tool": nil,
"foo": nil,
@@ -64,6 +65,7 @@ func TestGenruleCmd(t *testing.T) {
}
func TestJarGenrules(t *testing.T) {
+ t.Parallel()
ctx, _ := testJava(t, `
java_library {
name: "foo",