diff options
Diffstat (limited to 'third_party/rust/glean/tests')
-rw-r--r-- | third_party/rust/glean/tests/init_fails.rs | 5 | ||||
-rw-r--r-- | third_party/rust/glean/tests/never_init.rs | 5 | ||||
-rw-r--r-- | third_party/rust/glean/tests/no_time_to_init.rs | 5 | ||||
-rw-r--r-- | third_party/rust/glean/tests/schema.rs | 3 | ||||
-rw-r--r-- | third_party/rust/glean/tests/simple.rs | 5 | ||||
-rwxr-xr-x | third_party/rust/glean/tests/test-shutdown-blocking.sh | 2 | ||||
-rwxr-xr-x | third_party/rust/glean/tests/test-thread-crashing.sh | 2 | ||||
-rw-r--r-- | third_party/rust/glean/tests/upload_timing.rs | 5 |
8 files changed, 19 insertions, 13 deletions
diff --git a/third_party/rust/glean/tests/init_fails.rs b/third_party/rust/glean/tests/init_fails.rs index a0c23ca277..2ae4a91f02 100644 --- a/third_party/rust/glean/tests/init_fails.rs +++ b/third_party/rust/glean/tests/init_fails.rs @@ -42,8 +42,9 @@ mod pings { use once_cell::sync::Lazy; #[allow(non_upper_case_globals)] - pub static validation: Lazy<PingType> = - Lazy::new(|| glean::private::PingType::new("validation", true, true, true, true, vec![])); + pub static validation: Lazy<PingType> = Lazy::new(|| { + glean::private::PingType::new("validation", true, true, true, true, true, vec![], vec![]) + }); } /// Test scenario: Glean initialization fails. diff --git a/third_party/rust/glean/tests/never_init.rs b/third_party/rust/glean/tests/never_init.rs index 0d0d3768ff..a991ce467e 100644 --- a/third_party/rust/glean/tests/never_init.rs +++ b/third_party/rust/glean/tests/never_init.rs @@ -38,8 +38,9 @@ mod pings { use once_cell::sync::Lazy; #[allow(non_upper_case_globals)] - pub static validation: Lazy<PingType> = - Lazy::new(|| glean::private::PingType::new("validation", true, true, true, true, vec![])); + pub static validation: Lazy<PingType> = Lazy::new(|| { + glean::private::PingType::new("validation", true, true, true, true, true, vec![], vec![]) + }); } /// Test scenario: Glean is never initialized. diff --git a/third_party/rust/glean/tests/no_time_to_init.rs b/third_party/rust/glean/tests/no_time_to_init.rs index c312b397af..c14129c168 100644 --- a/third_party/rust/glean/tests/no_time_to_init.rs +++ b/third_party/rust/glean/tests/no_time_to_init.rs @@ -40,8 +40,9 @@ mod pings { use once_cell::sync::Lazy; #[allow(non_upper_case_globals)] - pub static validation: Lazy<PingType> = - Lazy::new(|| glean::private::PingType::new("validation", true, true, true, true, vec![])); + pub static validation: Lazy<PingType> = Lazy::new(|| { + glean::private::PingType::new("validation", true, true, true, true, true, vec![], vec![]) + }); } /// Test scenario: Glean initialization fails. diff --git a/third_party/rust/glean/tests/schema.rs b/third_party/rust/glean/tests/schema.rs index 59132cd82a..2909ab1dd3 100644 --- a/third_party/rust/glean/tests/schema.rs +++ b/third_party/rust/glean/tests/schema.rs @@ -170,7 +170,8 @@ fn validate_against_schema() { text_metric.set("loooooong text".repeat(100)); // Define a new ping and submit it. - let custom_ping = glean::private::PingType::new(PING_NAME, true, true, true, true, vec![]); + let custom_ping = + glean::private::PingType::new(PING_NAME, true, true, true, true, true, vec![], vec![]); custom_ping.submit(None); // Wait for the ping to arrive. diff --git a/third_party/rust/glean/tests/simple.rs b/third_party/rust/glean/tests/simple.rs index 3baa4df14e..d5c6a5244c 100644 --- a/third_party/rust/glean/tests/simple.rs +++ b/third_party/rust/glean/tests/simple.rs @@ -40,8 +40,9 @@ mod pings { use once_cell::sync::Lazy; #[allow(non_upper_case_globals)] - pub static validation: Lazy<PingType> = - Lazy::new(|| glean::private::PingType::new("validation", true, true, true, true, vec![])); + pub static validation: Lazy<PingType> = Lazy::new(|| { + glean::private::PingType::new("validation", true, true, true, true, true, vec![], vec![]) + }); } /// Test scenario: A clean run diff --git a/third_party/rust/glean/tests/test-shutdown-blocking.sh b/third_party/rust/glean/tests/test-shutdown-blocking.sh index 2f5d82acf0..8591aa005a 100755 --- a/third_party/rust/glean/tests/test-shutdown-blocking.sh +++ b/third_party/rust/glean/tests/test-shutdown-blocking.sh @@ -17,7 +17,7 @@ trap cleanup INT ABRT TERM EXIT tmp="${TMPDIR:-/tmp}" datapath=$(mktemp -d "${tmp}/glean_long_running.XXXX") -cargo run --example long-running -- "$datapath" +cargo run -p glean --example long-running -- "$datapath" count=$(ls -1q "$datapath/pending_pings" | wc -l) if [[ "$count" -eq 0 ]]; then diff --git a/third_party/rust/glean/tests/test-thread-crashing.sh b/third_party/rust/glean/tests/test-thread-crashing.sh index 1657467a33..67a0f4099c 100755 --- a/third_party/rust/glean/tests/test-thread-crashing.sh +++ b/third_party/rust/glean/tests/test-thread-crashing.sh @@ -19,7 +19,7 @@ datapath=$(mktemp -d "${tmp}/glean_long_running.XXXX") RUSTFLAGS="-C panic=abort" \ RUST_LOG=debug \ -cargo run --example crashing-threads -- "$datapath" +cargo run -p glean --example crashing-threads -- "$datapath" ret=$? count=$(ls -1q "$datapath/pending_pings" | wc -l) diff --git a/third_party/rust/glean/tests/upload_timing.rs b/third_party/rust/glean/tests/upload_timing.rs index ba0eee3402..49007cf8dc 100644 --- a/third_party/rust/glean/tests/upload_timing.rs +++ b/third_party/rust/glean/tests/upload_timing.rs @@ -96,8 +96,9 @@ mod pings { use once_cell::sync::Lazy; #[allow(non_upper_case_globals)] - pub static validation: Lazy<PingType> = - Lazy::new(|| glean::private::PingType::new("validation", true, true, true, true, vec![])); + pub static validation: Lazy<PingType> = Lazy::new(|| { + glean::private::PingType::new("validation", true, true, true, true, true, vec![], vec![]) + }); } // Define a fake uploader that sleeps. |