Skip to content

Commit 354635b

Browse files
committed
chore(api): replaced unpaused terminology with resumed
1 parent 2e9cf8d commit 354635b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/web_socket_event.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ class NetworkLossEvent extends NetworkEvent {
8888
String get runtimeTypeName => 'NetworkLossEvent';
8989
}
9090

91-
/// Discrete class for when the process is unpaused
92-
/// Triggers when AppLifecycleListener detects the process has been unpaused.
91+
/// Discrete class for when the process is resumed
92+
/// Triggers when AppLifecycleListener detects the process has been resumed.
9393
class ProcessResumeEvent extends WebSocketEvent {
94-
/// Create a process unpaused event
94+
/// Create a process resumed event
9595
const ProcessResumeEvent();
9696

9797
@override

packages/api/amplify_api_dart/test/web_socket/web_socket_bloc_test.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ void main() {
310310
mockPollClient.induceTimeout = false;
311311
});
312312

313-
test('should reconnect when process unpauses', () async {
313+
test('should reconnect when process resumes', () async {
314314
var dataCompleter = Completer<String>();
315315
final subscribeEvent = SubscribeEvent(
316316
subscriptionRequest,
@@ -358,7 +358,7 @@ void main() {
358358
await dataCompleter.future;
359359
});
360360

361-
test('should throttle reconnect after repeated unpausing', () async {
361+
test('should throttle reconnect after repeatedly resuming', () async {
362362
final blocReady = Completer<void>();
363363
final subscribeEvent = SubscribeEvent(
364364
subscriptionRequest,
@@ -380,7 +380,7 @@ void main() {
380380
],
381381
),
382382
reason:
383-
'Bloc should debounce multiple reconnection triggers while unpausing.',
383+
'Bloc should debounce multiple reconnection triggers while resuming.',
384384
);
385385

386386
bloc.subscribe(
@@ -402,7 +402,7 @@ void main() {
402402
..add(ProcessStatus.resumed);
403403
});
404404

405-
test('should reconnect multiple times after unpausing', () async {
405+
test('should reconnect multiple times after resuming', () async {
406406
final blocReady = Completer<void>();
407407
final subscribeEvent = SubscribeEvent(
408408
subscriptionRequest,
@@ -640,7 +640,7 @@ void main() {
640640
await bloc.done.future;
641641
});
642642

643-
test('a process unpauses with autoReconnect disabled', () async {
643+
test('a process resumes with autoReconnect disabled', () async {
644644
final blocReady = Completer<void>();
645645
final subscribeEvent = SubscribeEvent(
646646
subscriptionRequest,

0 commit comments

Comments
 (0)