Skip to content

Commit

Permalink
close in defer
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro committed Apr 11, 2024
1 parent a1b106f commit 1b2cdee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/storage/integration/grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand All @@ -145,6 +145,6 @@ func TestGRPCRemoteStorage(t *testing.T) {
useRemoteStorage: true,
}
s.initialize(t)
defer s.close(t)
s.RunAll(t)
s.close(t)
}

0 comments on commit 1b2cdee

Please sign in to comment.