Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sampling profiler test more likely to succeed. #23141

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Make sampling profiler test more likely to succeed.

  • Loading branch information
jdm committed Mar 30, 2019
commit 20dd603ba64cdebffe137f11ca9d47c0356dfa2f
@@ -44,7 +44,7 @@ fn test_sampler() {
.send(SamplerControlMsg::Enable(Duration::from_millis(RATE)))
.unwrap();

thread::sleep(Duration::from_millis(30));
thread::sleep(Duration::from_millis(100));

sampler_sender.send(SamplerControlMsg::Disable).unwrap();

@@ -56,7 +56,7 @@ fn test_sampler() {
let rate = json["rate"].as_u64().unwrap();
assert_eq!(rate, RATE);
let data = json["data"].as_array().unwrap();
assert!(data.len() > 1);
assert!(data.len() > 0);
assert_eq!(data[0]["name"].as_str().unwrap(), "test_sampler");
assert!(data[0]["frames"].as_array().unwrap().len() > 0);
break;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.