Skip to content

Commit

Permalink
chore(test): telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
LongLiveCHIEF committed Aug 21, 2023
1 parent f991dd1 commit 8acbecc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/utils/telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,14 @@ mod tests {
.insert_env_var(RoverEnvKey::TelemetryDisabled, "1")
.unwrap();
let expect_enabled = false;
let is_telemetry_enabled = rover.is_telemetry_enabled().unwrap();
let mut is_telemetry_enabled = rover.is_telemetry_enabled().unwrap();

assert_eq!(is_telemetry_enabled, expect_enabled);

rover
.insert_env_var(RoverEnvKey::TelemetryDisabled, "true")
.unwrap();
is_telemetry_enabled = rover.is_telemetry_enabled().unwrap();

assert_eq!(is_telemetry_enabled, expect_enabled);
}
Expand Down

0 comments on commit 8acbecc

Please sign in to comment.