From 6eedeede76e1a8a11ed830e88c08b9d638dfd059 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Tue, 29 Oct 2024 15:03:56 +0100 Subject: [PATCH] comments --- clusters/resource_cluster.go | 2 +- jobs/resource_job_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clusters/resource_cluster.go b/clusters/resource_cluster.go index f39c6ab18..3c0350202 100644 --- a/clusters/resource_cluster.go +++ b/clusters/resource_cluster.go @@ -26,7 +26,7 @@ var clusterSchema = resourceClusterSchema() var clusterSchemaVersion = 4 const ( - numWorkerErr = `NumWorkers could be 0 only for SingleNode clusters. To create a single node + numWorkerErr = `num_workers may be 0 only for single-node clusters. To create a single node cluster please include the following configuration in your cluster configuration: spark_conf = { diff --git a/jobs/resource_job_test.go b/jobs/resource_job_test.go index 8b0f824ac..75a780c00 100644 --- a/jobs/resource_job_test.go +++ b/jobs/resource_job_test.go @@ -2056,7 +2056,7 @@ func TestResourceJobCreateSingleNode_Fail(t *testing.T) { jar = "dbfs://ff/gg/hh.jar" }`, }.Apply(t) - assert.ErrorContains(t, err, `NumWorkers could be 0 only for SingleNode clusters. To create a single node + assert.ErrorContains(t, err, `num_workers may be 0 only for single-node clusters. To create a single node cluster please include the following configuration in your cluster configuration: spark_conf = { @@ -2959,7 +2959,7 @@ func TestResourceJobUpdate_FailNumWorkersZero(t *testing.T) { parameters = ["--cleanup", "full"] }`, }.Apply(t) - assert.ErrorContains(t, err, `NumWorkers could be 0 only for SingleNode clusters. To create a single node + assert.ErrorContains(t, err, `num_workers may be 0 only for single-node clusters. To create a single node cluster please include the following configuration in your cluster configuration: spark_conf = {