Skip to content

Commit

Permalink
tests: use system time in milliseconds to generate keyspace name suffix
Browse files Browse the repository at this point in the history
There are test suites where test cases share the same keyspace, but few of
cases require a dedicated keyspace with specific parameters.

The change allows producing unique keyspace name based on system time in microseconds,
to ensure the unique name for paralelized tests.
  • Loading branch information
dimakr committed Feb 14, 2025
1 parent 650ec58 commit 6974ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scylla/tests/common/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub(crate) fn unique_keyspace_name() -> String {
SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap()
.as_secs(),
.as_micros(),
cnt
);
println!("Unique name: {}", name);
Expand Down

0 comments on commit 6974ed0

Please sign in to comment.