fix misaligned bytes in test (#2373)
This commit is contained in:
parent
ed2769ef28
commit
21c3b3c7b5
|
@ -60,7 +60,7 @@ pub struct TestNonAccountStruct {
|
|||
#[account(zero_copy)]
|
||||
#[derive(InitSpace)]
|
||||
pub struct TestZeroCopyStruct {
|
||||
pub test_array: [u8; 10],
|
||||
pub test_array: [u8; 8],
|
||||
pub test_u32: u32,
|
||||
}
|
||||
|
||||
|
@ -108,7 +108,7 @@ fn test_complexe_struct() {
|
|||
|
||||
#[test]
|
||||
fn test_zero_copy_struct() {
|
||||
assert_eq!(TestZeroCopyStruct::INIT_SPACE, 10 + 4)
|
||||
assert_eq!(TestZeroCopyStruct::INIT_SPACE, 8 + 4)
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in New Issue