Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into ring-0.14
Browse files Browse the repository at this point in the history
* master:
  Fix join-set test to be deterministic. (#10263)
  • Loading branch information
ordian committed Jan 30, 2019
2 parents b347599 + 12c42bc commit ea700a6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions parity/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);
}
}

0 comments on commit ea700a6

Please sign in to comment.