Skip to content

Commit ccdec51

Browse files
committed
fix: bad conflict resolutions during rebase
1 parent 77cde08 commit ccdec51

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

packages/cipherstash-proxy-integration/src/common.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ pub async fn simple_query_with_null(sql: &str) -> Vec<Option<String>> {
200200
.collect()
201201
}
202202

203+
pub async fn insert(sql: &str, params: &[&(dyn ToSql + Sync)]) {
204+
let client = connect_with_tls(PROXY).await;
205+
client.query(sql, params).await.unwrap();
206+
}
207+
203208
pub async fn insert_jsonb() -> Value {
204209
let id = random_id();
205210

@@ -214,6 +219,7 @@ pub async fn insert_jsonb() -> Value {
214219
});
215220

216221
let sql = "INSERT INTO encrypted (id, encrypted_jsonb) VALUES ($1, $2)".to_string();
222+
217223
insert(&sql, &[&id, &encrypted_jsonb]).await;
218224

219225
encrypted_jsonb

packages/cipherstash-proxy-integration/src/support/assert.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,3 @@ where
77
assert_eq!(e, a);
88
}
99
}
10-
11-
pub fn assert_expected_as_string<T>(expected: &[T], actual: &[String])
12-
where
13-
T: std::fmt::Display + PartialEq + std::fmt::Debug,
14-
{
15-
assert_eq!(expected.len(), actual.len());
16-
for (e, a) in expected.iter().zip(actual) {
17-
assert_eq!(e.to_string(), *a);
18-
}
19-
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
#[cfg(test)]
12
pub mod assert;
3+
24
pub mod json_path;

0 commit comments

Comments
 (0)