Skip to content

Commit ff00d3c

Browse files
committed
timestamps it: teardown keyspaces
1 parent 224e667 commit ff00d3c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

scylla/tests/integration/statements/timestamps.rs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ async fn test_timestamp() {
123123
.collect::<Vec<_>>();
124124

125125
assert_eq!(results, expected_results);
126+
127+
session.ddl(format!("DROP KEYSPACE {ks}")).await.unwrap();
126128
}
127129

128130
#[tokio::test]
@@ -186,10 +188,14 @@ async fn test_timestamp_generator() {
186188
.into_rows_result()
187189
.unwrap();
188190

189-
let timestamps_locked = timestamps.lock().unwrap();
190-
assert!(query_rows_result
191-
.rows::<(i32, i32, i64)>()
192-
.unwrap()
193-
.map(|row_result| row_result.unwrap())
194-
.all(|(_a, _b, writetime)| timestamps_locked.contains(&writetime)));
191+
{
192+
let timestamps_locked = timestamps.lock().unwrap();
193+
assert!(query_rows_result
194+
.rows::<(i32, i32, i64)>()
195+
.unwrap()
196+
.map(|row_result| row_result.unwrap())
197+
.all(|(_a, _b, writetime)| timestamps_locked.contains(&writetime)));
198+
}
199+
200+
session.ddl(format!("DROP KEYSPACE {ks}")).await.unwrap();
195201
}

0 commit comments

Comments
 (0)