Refine executor description in WebSocketMessageBrokerStats

Closes gh-33104
This commit is contained in:
rstoyanchev
2024-07-12 17:35:21 +01:00
parent bd31e8dacc
commit 007a347ade
2 changed files with 18 additions and 7 deletions

View File

@@ -65,8 +65,8 @@ class WebSocketMessageBrokerStatsTests {
stats.setInboundChannelExecutor(executor);
stats.setOutboundChannelExecutor(executor);
assertThat(stats.getClientInboundExecutorStatsInfo()).as("inbound channel stats").isEqualTo("unknown");
assertThat(stats.getClientOutboundExecutorStatsInfo()).as("outbound channel stats").isEqualTo("unknown");
assertThat(stats.getClientInboundExecutorStatsInfo()).as("inbound channel stats").isEqualTo("thread-per-task");
assertThat(stats.getClientOutboundExecutorStatsInfo()).as("outbound channel stats").isEqualTo("thread-per-task");
}
@Test
@@ -86,7 +86,7 @@ class WebSocketMessageBrokerStatsTests {
stats.setSockJsTaskScheduler(scheduler);
assertThat(stats.getSockJsTaskSchedulerStatsInfo()).isEqualTo("unknown");
assertThat(stats.getSockJsTaskSchedulerStatsInfo()).isEqualTo("thread-per-task");
}
}