profile: require pending messages for bulk runs

This commit is contained in:
2026-08-04 23:57:10 +08:00
parent 9d2a155cf6
commit 31803396a8
5 changed files with 64 additions and 12 deletions
@@ -47,6 +47,28 @@ class UserProfileAnalysisServiceTest {
GroupProfileCursor(BOT, GROUP, cursorTime = 500, snapshotEndTime = 500),
)
)
assertEquals(bounds, pendingGroupAnalysisRange(bounds, null))
assertEquals(
bounds.copy(startTime = 300),
pendingGroupAnalysisRange(
bounds,
GroupProfileCursor(BOT, GROUP, cursorTime = 300, snapshotEndTime = 500),
)
)
assertEquals(
bounds.copy(startTime = 400, endTime = 600),
pendingGroupAnalysisRange(
bounds,
GroupProfileCursor(BOT, GROUP, cursorTime = 400, snapshotEndTime = 600),
)
)
assertNull(
pendingGroupAnalysisRange(
bounds,
GroupProfileCursor(BOT, GROUP, cursorTime = 500, snapshotEndTime = 500),
)
)
}
@Test