aboutsummaryrefslogblamecommitdiff
path: root/src/garage/tests/common/macros.rs
blob: 18d0ffebf4fb9dc4d99d608ae68bf00f269ef6e6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                     
macro_rules! assert_bytes_eq {
	($stream:expr, $bytes:expr) => {
		let data = $stream
			.collect()
			.await
			.expect("Error reading data")
			.into_bytes();

		assert_eq!(data.as_ref(), $bytes);
	};
}