Skip to content

Commit af298ab

Browse files
committed
fix-1715 : fix test
Signed-off-by: wind57 <[email protected]>
1 parent 38889c0 commit af298ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/LabeledConfigMapContextToSourceDataProviderTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ void searchWithLabelsTwoConfigMapsFoundAndOneFromProfileFound() {
498498

499499
V1ConfigMap shapeConfigmapK8s = new V1ConfigMapBuilder()
500500
.withMetadata(new V1ObjectMetaBuilder().withName("shape-configmap-k8s")
501-
.withLabels(Map.of("shape", "triangle"))
501+
.withLabels(BLUE_LABEL)
502502
.withNamespace(NAMESPACE)
503503
.build())
504504
.addToData("five", "5")
@@ -513,7 +513,6 @@ void searchWithLabelsTwoConfigMapsFoundAndOneFromProfileFound() {
513513
stubCall(configMapList);
514514
CoreV1Api api = new CoreV1Api();
515515
MockEnvironment environment = new MockEnvironment();
516-
environment.setActiveProfiles("k8s");
517516

518517
NormalizedSource source = new LabeledConfigMapNormalizedSource(NAMESPACE, BLUE_LABEL, true,
519518
ConfigUtils.Prefix.DELAYED, true);

0 commit comments

Comments
 (0)