Skip to content

Commit

Permalink
Extend fs::write test delay, and remove admin server from test to pre…
Browse files Browse the repository at this point in the history
…vent flakiness (#569)
  • Loading branch information
XAMPPRocky committed Aug 22, 2022
1 parent 46ff37f commit 4cae36b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/watch/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ mod tests {
});

std::fs::write(&file_path, serde_yaml::to_string(&source).unwrap()).unwrap();
tokio::time::sleep(std::time::Duration::from_millis(250)).await;
tokio::time::sleep(std::time::Duration::from_millis(500)).await;

assert_eq!(source, dest);
}
Expand Down
1 change: 1 addition & 0 deletions src/xds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ mod tests {
async fn basic() {
let config: Arc<Config> = serde_json::from_value(serde_json::json!({
"version": "v1alpha1",
"admin": null,
"proxy": {
"id": "test-proxy",
"port": 23456u16,
Expand Down

0 comments on commit 4cae36b

Please sign in to comment.