Compare commits
2 Commits
7c2c03aa40
...
1b2fd45c89
Author | SHA1 | Date | |
---|---|---|---|
1b2fd45c89 | |||
374e50ee6b |
@ -19,7 +19,7 @@
|
||||
doCheck = true;
|
||||
};
|
||||
devShell = with pkgs; mkShell {
|
||||
nativeBuildInputs = with pkgs; [rustc cargo rustfmt pre-commit];
|
||||
nativeBuildInputs = with pkgs; [rustc cargo rustfmt pre-commit clippy];
|
||||
};
|
||||
});
|
||||
}
|
@ -97,6 +97,10 @@ async fn heavy_async() {
|
||||
for i in 0..100 {
|
||||
let client = client.clone();
|
||||
tasks.push(tokio::spawn(async move {
|
||||
tokio::time::sleep(tokio::time::Duration::from_millis(
|
||||
rand::random::<u64>() % 100,
|
||||
))
|
||||
.await;
|
||||
let result = client.addition(i, i).await.unwrap();
|
||||
assert_eq!(result, i + i);
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user