Skip to content

Commit 0acab73

Browse files
Re-word logs in GetClusterType()
1 parent 8f06846 commit 0acab73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

support/environment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func GetClusterId() (string, bool) {
8787
func GetClusterType(t Test) ClusterType {
8888
clusterType, ok := os.LookupEnv(ClusterTypeEnvVar)
8989
if !ok {
90-
t.T().Logf("Expected environment variable %s not found, cluster type is not defined.", ClusterTypeEnvVar)
90+
t.T().Logf("Environment variable %s is unset.", ClusterTypeEnvVar)
9191
return UndefinedCluster
9292
}
9393
switch clusterType {
@@ -100,7 +100,7 @@ func GetClusterType(t Test) ClusterType {
100100
case "KIND":
101101
return KindCluster
102102
default:
103-
t.T().Logf("Expected environment variable %s contains unexpected value: '%s'", ClusterTypeEnvVar, clusterType)
103+
t.T().Logf("Environment variable %s is unset or contains an incorrect value: '%s'", ClusterTypeEnvVar, clusterType)
104104
return UndefinedCluster
105105
}
106106
}

0 commit comments

Comments
 (0)