You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Log only error types (safe enums like "Unauthorized", "ConflictUnhandled")
125
-
// Do NOT log error messages or field values which may contain sensitive data
126
-
final errorTypes = deleteResponse.errors
127
-
?.map((e) => e.errorType ??'Unknown')
128
-
.join(', ');
129
-
AWSLogger().warn('[Cleanup] Delete mutation failed with ${deleteResponse.errors?.length ?? 0} error(s). Types: $errorTypes. This is expected if DataStore sync modified the item version.');
130
-
}
122
+
expect(deleteResponse.hasErrors, isFalse);
123
+
124
+
// === DATASTORE: Start sync and test ===
125
+
// Restart DataStore for DataStore-specific tests after API tests are complete
126
+
awaitAmplify.DataStore.start();
131
127
132
128
// === DATASTORE: Save and observe ===
133
129
final dsTodo =Todo(name:'canary-ds-test', owner: username);
0 commit comments