Skip to content

Commit d538129

Browse files
committed
pager it: teardown keyspaces
1 parent a474ff6 commit d538129

File tree

1 file changed

+5
-1
lines changed
  • scylla/tests/integration/session

1 file changed

+5
-1
lines changed

scylla/tests/integration/session/pager.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async fn test_iter_works_when_retry_policy_returns_ignore_write_error() {
6464
create_ks += " and TABLETS = { 'enabled': false}";
6565
}
6666
session.ddl(create_ks).await.unwrap();
67-
session.use_keyspace(ks, true).await.unwrap();
67+
session.use_keyspace(&ks, true).await.unwrap();
6868
session
6969
.ddl("CREATE TABLE t (pk int PRIMARY KEY, v int)")
7070
.await
@@ -99,6 +99,8 @@ async fn test_iter_works_when_retry_policy_returns_ignore_write_error() {
9999

100100
assert!(retried_flag.load(Ordering::Relaxed));
101101
while iter.try_next().await.unwrap().is_some() {}
102+
103+
session.ddl(format!("DROP KEYSPACE {ks}")).await.unwrap();
102104
}
103105

104106
#[tokio::test]
@@ -140,4 +142,6 @@ async fn test_iter_methods_with_modification_statements() {
140142
.await
141143
.ok_or(())
142144
.unwrap_err(); // assert empty
145+
146+
session.ddl(format!("DROP KEYSPACE {ks}")).await.unwrap();
143147
}

0 commit comments

Comments
 (0)