Pass the ctx to the close function

This commit is contained in:
Zoltán Papp
2024-08-21 16:05:04 +02:00
parent 7633cca3b1
commit a208e7999c
7 changed files with 32 additions and 33 deletions

View File

@ -85,7 +85,7 @@ func transfer(t *testing.T, testData []byte, peerPairs int) {
}()
defer func() {
err := srv.Close()
err := srv.Close(ctx)
if err != nil {
t.Errorf("failed to close server: %s", err)
}