From 532bee66237b5adfde958b27205e4ea43189a043 Mon Sep 17 00:00:00 2001 From: Sho Sakuma Date: Thu, 26 Mar 2026 08:35:49 +0900 Subject: test: Fix StatusCommandTest `verify` value --- codecov.yml | 3 +++ .../dev/m1sk9/lunaticChat/paper/command/impl/lc/StatusCommandTest.kt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index 822b43f..e23de4b 100644 --- a/codecov.yml +++ b/codecov.yml @@ -18,6 +18,9 @@ ignore: - "platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/listener/**" # BuildInfo loads build-time resources at class init and is verified via integration tests. - "platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/BuildInfo.kt" + # VelocityStatusCommand is tightly coupled to VelocityConnectionManager and has no unit-test + # infrastructure; it is exercised via end-to-end multi-server tests. + - "platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/command/impl/lcv/VelocityStatusCommand.kt" # The Velocity platform has no unit-test infrastructure; it is exercised via end-to-end # multi-server tests (docker compose). - "platform-velocity/src/main/kotlin/**" diff --git a/platform-paper/src/test/kotlin/dev/m1sk9/lunaticChat/paper/command/impl/lc/StatusCommandTest.kt b/platform-paper/src/test/kotlin/dev/m1sk9/lunaticChat/paper/command/impl/lc/StatusCommandTest.kt index 039b135..63cf908 100644 --- a/platform-paper/src/test/kotlin/dev/m1sk9/lunaticChat/paper/command/impl/lc/StatusCommandTest.kt +++ b/platform-paper/src/test/kotlin/dev/m1sk9/lunaticChat/paper/command/impl/lc/StatusCommandTest.kt @@ -148,7 +148,7 @@ class StatusCommandTest { assertIs(result) // Nightly warning + version + health + features header + 4 features + config header + // debug + checkForUpdates + releaseChannel + language + 3 links = at least 15 messages - verify(atLeast = 5) { deps.mockPlayer.sendMessage(any()) } + verify(atLeast = 15) { deps.mockPlayer.sendMessage(any()) } } finally { unmockkObject(BuildInfo) } -- cgit v1.2.1