Fix join-set test to be deterministic. (#10263)

This commit is contained in:
Tomasz Drwięga 2019-01-30 13:57:38 +01:00 committed by Andrew Jones
parent eb3d33ed6f
commit 12c42bce9b

View File

@ -487,7 +487,14 @@ but the first password is trimmed
let mut test_set = HashSet::new();
test_set.insert("0x1111111111111111111111111111111111111111".to_string());
test_set.insert("0x0000000000000000000000000000000000000000".to_string());
assert_eq!("0x1111111111111111111111111111111111111111,0x0000000000000000000000000000000000000000".to_string(),
join_set(Some(&test_set)).unwrap());
let res = join_set(Some(&test_set)).unwrap();
assert!(
res == "0x1111111111111111111111111111111111111111,0x0000000000000000000000000000000000000000"
||
res == "0x0000000000000000000000000000000000000000,0x1111111111111111111111111111111111111111"
);
}
}