mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-26 22:10:52 +00:00
Fix the RNG seed in tests
This commit is contained in:
parent
89e268c9d9
commit
bd234c13c5
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ impl TestEnvironment {
|
|||
|
||||
let mut command_number = self.command_number.borrow_mut();
|
||||
*command_number += 1;
|
||||
cmd.env("JJ_RANDOMNESS_SEED", command_number.to_string());
|
||||
let timestamp = chrono::DateTime::parse_from_rfc3339("2001-02-03T04:05:06+07:00").unwrap();
|
||||
let timestamp = timestamp + chrono::Duration::seconds(*command_number);
|
||||
cmd.env("JJ_TIMESTAMP", timestamp.to_rfc3339());
|
||||
|
|
Loading…
Reference in a new issue