From 45a1d6811cd795d9b56f1a731d2ea8d65eed9dc0 Mon Sep 17 00:00:00 2001 From: Herko Lategan Date: Wed, 8 May 2024 15:45:42 +0100 Subject: [PATCH] roachtest: fix `OperationRequiresNodes` dependency check Epic: None Release Note: None --- pkg/cmd/roachtest/roachtestutil/operations/dependency.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/roachtest/roachtestutil/operations/dependency.go b/pkg/cmd/roachtest/roachtestutil/operations/dependency.go index 357b07d215b3..07a273b0a4d8 100644 --- a/pkg/cmd/roachtest/roachtestutil/operations/dependency.go +++ b/pkg/cmd/roachtest/roachtestutil/operations/dependency.go @@ -29,7 +29,7 @@ func CheckDependencies( for _, dep := range spec.Dependencies { switch dep { case registry.OperationRequiresNodes: - if len(c.Nodes()) == 0 { + if len(c.All()) == 0 { return false, nil } case registry.OperationRequiresPopulatedDatabase: