From 32899d1cc3d39b53ac32cc406afbbe0cec2c7dac Mon Sep 17 00:00:00 2001 From: Damian Gryski Date: Mon, 27 Sep 2021 10:16:34 -0700 Subject: [PATCH] testing: add a stub for t.Parallel() --- src/testing/testing.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/testing/testing.go b/src/testing/testing.go index 0b8d01ae..c7650f63 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -64,6 +64,7 @@ type TB interface { Skipf(format string, args ...interface{}) Skipped() bool Helper() + Parallel() } var _ TB = (*T)(nil) @@ -194,6 +195,11 @@ func (c *common) Helper() { // Unimplemented. } +// Parallel is not implemented, it is only provided for compatibility. +func (c *common) Parallel() { + // Unimplemented. +} + // Run runs a subtest of f t called name. It waits until the subtest is finished // and returns whether the subtest succeeded. func (t *T) Run(name string, f func(t *T)) bool {