Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3507504
D4636.id14928.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D4636.id14928.diff
View Options
diff --git a/services/commtest/tests/backup_performance_test.rs b/services/commtest/tests/backup_performance_test.rs
--- a/services/commtest/tests/backup_performance_test.rs
+++ b/services/commtest/tests/backup_performance_test.rs
@@ -4,6 +4,8 @@
mod backup_utils;
#[path = "./backup/create_new_backup.rs"]
mod create_new_backup;
+#[path = "./backup/pull_backup.rs"]
+mod pull_backup;
#[path = "./backup/send_log.rs"]
mod send_log;
#[path = "./lib/tools.rs"]
@@ -209,6 +211,24 @@
});
// PULL BACKUP
+ rt.block_on(async {
+ println!("performing PULL BACKUP operations");
+ let mut handlers = vec![];
+ for item in backup_data {
+ let item_cloned = item.clone();
+ let mut client_cloned = client.clone();
+ handlers.push(tokio::spawn(async move {
+ let result = pull_backup::run(&mut client_cloned, &item_cloned)
+ .await
+ .unwrap();
+ backup_utils::compare_backups(&item_cloned, &result);
+ }));
+ }
+
+ for handler in handlers {
+ handler.await.unwrap();
+ }
+ });
})
.await
.expect("Task panicked");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 9:04 PM (21 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2689081
Default Alt Text
D4636.id14928.diff (1 KB)
Attached To
Mode
D4636: [services] Tests - Backup - Pull backup
Attached
Detach File
Event Timeline
Log In to Comment