Skip to content

Commit b9ba09f

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
update unit test to not be so specific
1 parent 62c2a47 commit b9ba09f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

registry/src/registry_helper.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,7 @@ fn get_product_name() {
287287
let reg_config = reg_helper.get().unwrap();
288288
assert_eq!(reg_config.key_path, r#"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion"#);
289289
assert_eq!(reg_config.value_name, Some("ProductName".to_string()));
290-
// value data starts with "Windows 10"
291-
assert!(matches!(reg_config.value_data, Some(RegistryValueData::String(s)) if s.starts_with("Windows 10")));
290+
assert!(matches!(reg_config.value_data, Some(RegistryValueData::String(s)) if s.starts_with("Windows ")));
292291
}
293292

294293
#[test]

0 commit comments

Comments
 (0)