From b56b75293669e7eaedd657953986043a449514b1 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Mon, 11 May 2026 09:55:41 +0200 Subject: [PATCH] integration: fix TestClustersGet assertion after JSON formatter change PR #5170 replaced nwidger/jsoncolor with `json.MarshalIndent`, which emits the standard `: ` separator. The substring assertion still expected the compact `"k":"v"` form and failed on every nightly env. Co-authored-by: Isaac --- integration/cmd/clusters/clusters_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/cmd/clusters/clusters_test.go b/integration/cmd/clusters/clusters_test.go index 33a2aa0b3ee..f15d77d440e 100644 --- a/integration/cmd/clusters/clusters_test.go +++ b/integration/cmd/clusters/clusters_test.go @@ -32,7 +32,7 @@ func TestClustersGet(t *testing.T) { clusterId := findValidClusterID(t) stdout, stderr := testcli.RequireSuccessfulRun(t, ctx, "clusters", "get", clusterId) outStr := stdout.String() - assert.Contains(t, outStr, fmt.Sprintf(`"cluster_id":"%s"`, clusterId)) + assert.Contains(t, outStr, fmt.Sprintf(`"cluster_id": "%s"`, clusterId)) assert.Equal(t, "", stderr.String()) }