forked from TrueCloudLab/frostfs-node
[#895] test: Use t.Cleanup only for external resources
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
836818fb75
commit
47dcfa20f3
50 changed files with 164 additions and 95 deletions
|
@ -17,7 +17,7 @@ func TestSimpleLifecycle(t *testing.T) {
|
|||
WithRootPath("memstore"),
|
||||
WithLogger(test.NewLogger(t)),
|
||||
)
|
||||
t.Cleanup(func() { _ = s.Close() })
|
||||
defer func() { require.NoError(t, s.Close()) }()
|
||||
require.NoError(t, s.Open(false))
|
||||
require.NoError(t, s.Init())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue