Skip to content

Commit bc2ed48

Browse files
authored
Fix incorrect types (#1386)
1 parent 70e4cb5 commit bc2ed48

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

integration_tests/src/lib.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -3840,16 +3840,14 @@ mod test {
38403840
// Write data in
38413841
guest
38423842
.write(
3843-
Block::new(0, BLOCK_SIZE.trailing_zeros()),
3843+
BlockIndex(0),
38443844
BytesMut::from(vec![0x55; BLOCK_SIZE * 10].as_slice()),
38453845
)
38463846
.await?;
38473847

38483848
// Read back our block post replacement, verify contents
38493849
let mut buffer = Buffer::new(10, BLOCK_SIZE);
3850-
guest
3851-
.read(Block::new(0, BLOCK_SIZE.trailing_zeros()), &mut buffer)
3852-
.await?;
3850+
guest.read(BlockIndex(0), &mut buffer).await?;
38533851

38543852
assert_eq!(vec![0x55_u8; BLOCK_SIZE * 10], &buffer[..]);
38553853

0 commit comments

Comments
 (0)