Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-goenka committed Oct 29, 2024
1 parent bd79299 commit 6eedeed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clusters/resource_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
4 changes: 2 additions & 2 deletions jobs/resource_job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 6eedeed

Please sign in to comment.