summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-03-26 08:35:49 +0900
committerSho Sakuma <me@m1sk9.dev>2026-03-26 08:35:49 +0900
commit532bee66237b5adfde958b27205e4ea43189a043 (patch)
tree0ba7c1ac89c17fd5b40654a5e3910cb889545050
parent50ecc1136d87767f9dc522e57d34a0ff6ead6b81 (diff)
downloadLunaticChat-532bee66237b5adfde958b27205e4ea43189a043.tar.gz
LunaticChat-532bee66237b5adfde958b27205e4ea43189a043.tar.bz2
LunaticChat-532bee66237b5adfde958b27205e4ea43189a043.zip
test: Fix StatusCommandTest `verify` value
-rw-r--r--codecov.yml3
-rw-r--r--platform-paper/src/test/kotlin/dev/m1sk9/lunaticChat/paper/command/impl/lc/StatusCommandTest.kt2
2 files changed, 4 insertions, 1 deletions
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<CommandResult.Success>(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<Component>()) }
+ verify(atLeast = 15) { deps.mockPlayer.sendMessage(any<Component>()) }
} finally {
unmockkObject(BuildInfo)
}