ExportStatusWriter: take testing.TB instead of *testing.T

This commit is contained in:
Matt Joiner 2022-06-14 14:06:36 +10:00
parent 061407fbc4
commit 65896d4cec
No known key found for this signature in database
GPG Key ID: 6B990B8185E7F782
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ var (
sws = map[string]StatusWriter{}
)
func ExportStatusWriter(sw StatusWriter, path string, t *testing.T) (release func()) {
func ExportStatusWriter(sw StatusWriter, path string, t testing.TB) (release func()) {
pattern := fmt.Sprintf("/%s/%s", t.Name(), path)
t.Logf("exporting status path %q", pattern)
release = func() {