File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
scylla/tests/integration/types Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments