Skip to content

Commit 541a4ae

Browse files
committed
reword log messages based on PR feedback
1 parent 4fcebc5 commit 541a4ae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/console/operator/sync_v400.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ func (co *consoleOperator) SyncTechPreview() (techPreviewEnabled bool, reason st
572572
techPreviewEnabled = featureGate.Spec.FeatureSet == configv1.TechPreviewNoUpgrade
573573

574574
if techPreviewEnabled {
575-
klog.V(4).Infoln("console tech preview features enabled based on cluster FeatureSet TechPreviewNoUpgrade")
575+
klog.V(4).Infoln("Console Technology Preview features enabled based on cluster FeatureSet TechPreviewNoUpgrade")
576576
}
577577
return techPreviewEnabled, "", nil
578578
}

pkg/console/subresource/configmap/tech_preview_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ func TestTechPreviewEnabled(t *testing.T) {
2525
want bool
2626
}{
2727
{
28-
name: "Tech preview enabled",
28+
name: "Technology Preview enabled",
2929
args: args{
3030
techPreviewEnabled: true,
3131
},
3232
want: true,
3333
},
3434
{
35-
name: "Tech preview disabled",
35+
name: "Technology Preview disabled",
3636
args: args{
3737
techPreviewEnabled: false,
3838
},
@@ -115,7 +115,7 @@ func TestTechPreviewEnabled(t *testing.T) {
115115

116116
// Verify tech preview setting
117117
if config.ClusterInfo.TechPreviewEnabled != tt.want {
118-
t.Errorf("TechPreviewEnabled = %v, want %v", config.ClusterInfo.TechPreviewEnabled, tt.want)
118+
t.Errorf("TechPreviewEnabled: got %t, want %t (case %q, techPreviewEnabled input=%t)", config.ClusterInfo.TechPreviewEnabled, tt.want, tt.name, tt.args.techPreviewEnabled)
119119
}
120120
})
121121
}

0 commit comments

Comments
 (0)