mirror of
https://github.com/coredns/coredns.git
synced 2026-10-09 12:05:22 -04:00
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:
@@ -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())
|
||||
}
|
||||
server.Stop()
|
||||
server.ShutdownCallbacks()
|
||||
port++
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user