Skip to content

Commit 213587d

Browse files
Fix unit tests take 2
Signed-off-by: artur-ciocanu <[email protected]>
1 parent 15c60f5 commit 213587d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dapr-spring/dapr-spring-boot-autoconfigure/src/test/java/io/dapr/spring/boot/autoconfigure/client/DaprClientPropertiesTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public void shouldSetDaprClientDefaultPropertiesCorrectly() {
7171
DaprClientProperties properties = new DaprClientProperties();
7272

7373
SoftAssertions.assertSoftly(softAssertions -> {
74-
softAssertions.assertThat(properties.getGrpcEndpoint()).isEqualTo("localhost");
75-
softAssertions.assertThat(properties.getHttpEndpoint()).isEqualTo("http://localhost");
74+
softAssertions.assertThat(properties.getGrpcEndpoint()).isEqualTo("localhost:50001");
75+
softAssertions.assertThat(properties.getHttpEndpoint()).isEqualTo("http://localhost:3500");
7676
softAssertions.assertThat(properties.getHttpPort()).isEqualTo(3500);
7777
softAssertions.assertThat(properties.getGrpcPort()).isEqualTo(50001);
7878
softAssertions.assertThat(properties.getApiToken()).isNull();
@@ -111,8 +111,8 @@ public void shouldMapDaprClientPropertiesCamelCase() {
111111
).run(context -> {
112112
DaprClientProperties properties = context.getBean(DaprClientProperties.class);
113113
SoftAssertions.assertSoftly(softly -> {
114-
softly.assertThat(properties.getGrpcEndpoint()).isEqualTo("localhost:50001");
115-
softly.assertThat(properties.getHttpEndpoint()).isEqualTo("http://localhost:3500");
114+
softly.assertThat(properties.getGrpcEndpoint()).isEqualTo("localhost");
115+
softly.assertThat(properties.getHttpEndpoint()).isEqualTo("http://localhost");
116116
softly.assertThat(properties.getHttpPort()).isEqualTo(3500);
117117
softly.assertThat(properties.getGrpcPort()).isEqualTo(50001);
118118
});

0 commit comments

Comments
 (0)