From 4d26a761603f2f9b29da815009ad4429311c55d9 Mon Sep 17 00:00:00 2001 From: wyrapeseed Date: Tue, 21 Oct 2025 16:30:54 +0800 Subject: [PATCH] refactor: replace context.WithCancel with t.Context Signed-off-by: wyrapeseed --- vms/rpcchainvm/vm_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vms/rpcchainvm/vm_test.go b/vms/rpcchainvm/vm_test.go index fd23ee4edc37..23ec30aa9349 100644 --- a/vms/rpcchainvm/vm_test.go +++ b/vms/rpcchainvm/vm_test.go @@ -186,8 +186,7 @@ func TestRuntimeSubprocessBootstrap(t *testing.T) { require.NoError(os.Setenv(runtime.EngineAddressKey, listener.Addr().String())) - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() + ctx := t.Context() if test.serveVM { go func() {