From b54e477602d8573465342ed8a79be1d68ab8ca21 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sun, 22 Aug 2021 20:35:45 +0200 Subject: [PATCH] platformtest: fix 'active child tasks' panic for ReceiveForceRollbackWorksUnencrypted Revealed by rework of SendStream in a prior commit. --- platformtest/tests/recvRollback.go | 1 + 1 file changed, 1 insertion(+) diff --git a/platformtest/tests/recvRollback.go b/platformtest/tests/recvRollback.go index e75f5ff..fa6b395 100644 --- a/platformtest/tests/recvRollback.go +++ b/platformtest/tests/recvRollback.go @@ -40,6 +40,7 @@ func ReceiveForceRollbackWorksUnencrypted(ctx *platformtest.Context) { sendStream, err := zfs.ZFSSend(ctx, sendArgs) require.NoError(ctx, err) + defer sendStream.Close() recvOpts := zfs.RecvOptions{ RollbackAndForceRecv: true,