diff --git a/pgrx-tests/src/tests/array_borrowed.rs b/pgrx-tests/src/tests/array_borrowed.rs index 63e97aaca..dc59bd47b 100644 --- a/pgrx-tests/src/tests/array_borrowed.rs +++ b/pgrx-tests/src/tests/array_borrowed.rs @@ -156,13 +156,13 @@ fn borrow_validate_cstring_array( assert_eq!( a.iter().map(|v| v.into_option()).collect::>(), vec![ - Some(CStr::from_bytes_with_nul(b"one\0")?), - Some(CStr::from_bytes_with_nul(b"two\0")?), + Some(c"one"), + Some(c"two"), None, - Some(CStr::from_bytes_with_nul(b"four\0")?), - Some(CStr::from_bytes_with_nul(b"five\0")?), + Some(c"four"), + Some(c"five"), None, - Some(CStr::from_bytes_with_nul(b"seven\0")?), + Some(c"seven"), None, None ]