GIVE 연타에 행성이 흔들리고 우하단에 [+1] · 10회 이상이면 [+10]과 자전 1.5배, 전송 중 연타는 다음 묶음으로 쌓임

This commit is contained in:
Sn-Kinos
2026-10-22 01:25:27 +09:00
parent 3f59c5070e
commit a2739a37f1
7 changed files with 389 additions and 45 deletions
+9 -1
View File
@@ -200,7 +200,7 @@ void main() {
await tester.pumpAndSettle();
});
testWidgets('전송 중 성공을 보여주지 않고 전송 중 연타로 중복 차감하지 않는다', (tester) async {
testWidgets('전송 중 성공을 보여주지 않고, 전송 중 연타는 앞 묶음 확정 뒤 새 키의 다음 묶음으로 한 번만 보낸다', (tester) async {
final repository = _DelayedGalaxy();
await _show(tester, repository);
await tester.tap(find.byType(ZapButton));
@@ -215,8 +215,16 @@ void main() {
const ZapResult(txId: 'confirmed', balanceAfter: 12530),
);
await tester.pump();
expect(repository.counts, [1, 1]);
expect(repository.keys[1], isNot(repository.keys[0]));
expect(find.textContaining('기여 완료'), findsNothing);
repository.replies.last.complete(
const ZapResult(txId: 'confirmed-2', balanceAfter: 12520),
);
await tester.pump();
await tester.pump(const Duration(seconds: 1));
expect(find.textContaining('기여 완료'), findsOneWidget);
expect(repository.replies, hasLength(2));
});
testWidgets('응답 유실 재확인은 같은 멱등키를 쓰고 실패에는 성공 FX가 없다', (tester) async {