Skip to content

Commit 37b4320

Browse files
- (#2425)
1 parent 160b944 commit 37b4320

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/acceptance/sql_permissions_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ func TestAccTableACL(t *testing.T) {
2727

2828
executor, err := w.CommandExecution.Start(ctx, info.ClusterId, compute.LanguagePython)
2929
require.NoError(t, err)
30-
defer executor.Destroy(ctx)
30+
t.Cleanup(func() {
31+
err = executor.Destroy(ctx)
32+
require.NoError(t, err)
33+
})
3134

3235
cr, err := executor.Execute(ctx, fmt.Sprintf("spark.range(10).write.saveAsTable('%s')", talbeName))
3336
require.NoError(t, err)

0 commit comments

Comments
 (0)