diff --git a/go/packages/packagestest/export.go b/go/packages/packagestest/export.go index cb290fdd5d..4f2b3272d3 100644 --- a/go/packages/packagestest/export.go +++ b/go/packages/packagestest/export.go @@ -103,7 +103,7 @@ func TestAll(t *testing.T, f func(*testing.T, Exporter)) { // The file deletion in the cleanup can be skipped by setting the skip-cleanup // flag when invoking the test, allowing the temporary directory to be left for // debugging tests. -func Export(t *testing.T, exporter Exporter, modules []Module) *Exported { +func Export(t testing.TB, exporter Exporter, modules []Module) *Exported { t.Helper() dirname := strings.Replace(t.Name(), "/", "_", -1) dirname = strings.Replace(dirname, "#", "_", -1) // duplicate subtests get a #NNN suffix.