From 844cb6a6646454aaba28b602cf49284df32cdc9f Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 29 Jan 2025 15:53:21 -0800 Subject: Add t.Parallel() to java tests Speeds up go test ./java from 32 seconds to 9 seconds. Test: go test ./java Change-Id: I4c6640e787c0744c6dfda03b7382839b452e24cf --- java/plugin_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'java/plugin_test.go') diff --git a/java/plugin_test.go b/java/plugin_test.go index dc29b1c3e..95f4aca4c 100644 --- a/java/plugin_test.go +++ b/java/plugin_test.go @@ -19,6 +19,7 @@ import ( ) func TestNoPlugin(t *testing.T) { + t.Parallel() ctx, _ := testJava(t, ` java_library { name: "foo", @@ -43,6 +44,7 @@ func TestNoPlugin(t *testing.T) { } func TestPlugin(t *testing.T) { + t.Parallel() ctx, _ := testJava(t, ` java_library { name: "foo", @@ -82,6 +84,7 @@ func TestPlugin(t *testing.T) { } func TestPluginGeneratesApi(t *testing.T) { + t.Parallel() ctx, _ := testJava(t, ` java_library { name: "foo", -- cgit v1.2.3-59-g8ed1b