fix TestReadme failed cleanup between runs (#8545)

Instance.Stop does not call shutdown callbacks. Plugins that rely
on them to release resources can leave bound listeners that affect
tests that come next.

Signed-off-by: Ilya Kulakov <kulakov.ilya@gmail.com>
This commit is contained in:
Ilya Kulakov
2026-09-12 07:04:41 -07:00
committed by GitHub
parent 9221e099e4
commit 24abd331e4

View File

@@ -88,6 +88,7 @@ func TestReadme(t *testing.T) {
t.Errorf("Failed to start server with %s, for input %q:\n%s", readme, err, in.Body()) t.Errorf("Failed to start server with %s, for input %q:\n%s", readme, err, in.Body())
} }
server.Stop() server.Stop()
server.ShutdownCallbacks()
port++ port++
} }
} }