Skip to content

Commit a1e8c36

Browse files
committed
cql_value it: teardown keyspaces
1 parent dca1ec5 commit a1e8c36

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scylla/tests/integration/types/cql_value.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async fn test_cqlvalue_udt() {
2626
session.ddl("CREATE TABLE IF NOT EXISTS cqlvalue_udt_test (k int, my cqlvalue_udt_type, primary key (k))").await.unwrap();
2727

2828
let udt_cql_value = CqlValue::UserDefinedType {
29-
keyspace: ks,
29+
keyspace: ks.clone(),
3030
name: "cqlvalue_udt_type".to_string(),
3131
fields: vec![
3232
("int_val".to_string(), Some(CqlValue::Int(42))),
@@ -52,6 +52,8 @@ async fn test_cqlvalue_udt() {
5252
let (received_udt_cql_value,) = rows_result.single_row::<(CqlValue,)>().unwrap();
5353

5454
assert_eq!(received_udt_cql_value, udt_cql_value);
55+
56+
session.ddl(format!("DROP KEYSPACE {ks}")).await.unwrap();
5557
}
5658

5759
#[tokio::test]
@@ -145,4 +147,6 @@ async fn test_cqlvalue_duration() {
145147
);
146148

147149
assert_matches!(rows_iter.next(), None);
150+
151+
session.ddl(format!("DROP KEYSPACE {ks}")).await.unwrap();
148152
}

0 commit comments

Comments
 (0)