Skip to content

Commit 9aa0f74

Browse files
committed
Fix a failing test case
1 parent 7368ab9 commit 9aa0f74

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

diesel_tests/tests/update.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ fn upsert_with_no_changes_executes_do_nothing() {
233233
struct Changes {
234234
hair_color: Option<String>,
235235
}
236-
236+
{
237237
let connection = connection_with_sean_and_tess_in_users_table();
238238
let result = insert_into(users::table)
239239
.values(&User::new(1, "Sean"))
@@ -243,7 +243,9 @@ fn upsert_with_no_changes_executes_do_nothing() {
243243
.execute(&connection);
244244

245245
assert_eq!(Ok(0), result);
246+
}
246247

248+
{
247249
// Try the same thing with an owned type.
248250
let connection = connection_with_sean_and_tess_in_users_table();
249251
let result = insert_into(users::table)
@@ -254,6 +256,7 @@ fn upsert_with_no_changes_executes_do_nothing() {
254256
.execute(&connection);
255257

256258
assert_eq!(Ok(0), result);
259+
}
257260
}
258261

259262
#[test]

0 commit comments

Comments
 (0)