From 1b2cdeedb473c3e5d274897233a5fbec867784c3 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Thu, 11 Apr 2024 17:51:52 -0400 Subject: [PATCH] close in defer Signed-off-by: Yuri Shkuro --- plugin/storage/integration/grpc_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/storage/integration/grpc_test.go b/plugin/storage/integration/grpc_test.go index c4b75035395..ef0ac89e70f 100644 --- a/plugin/storage/integration/grpc_test.go +++ b/plugin/storage/integration/grpc_test.go @@ -112,8 +112,8 @@ func TestGRPCStorage(t *testing.T) { flags: flags, } s.initialize(t) + defer s.close(t) s.RunAll(t) - s.close(t) } func TestGRPCStreamingWriter(t *testing.T) { @@ -129,8 +129,8 @@ func TestGRPCStreamingWriter(t *testing.T) { flags: flags, } s.initialize(t) + defer s.close(t) s.RunAll(t) - s.close(t) } func TestGRPCRemoteStorage(t *testing.T) { @@ -145,6 +145,6 @@ func TestGRPCRemoteStorage(t *testing.T) { useRemoteStorage: true, } s.initialize(t) + defer s.close(t) s.RunAll(t) - s.close(t) }