Skip to content

Commit cd68aec

Browse files
de-vri-esThomasdezeeuw
authored andcommitted
Fix tests for fixed typo.
1 parent d8b3fda commit cd68aec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ fn send_recv_vectored() {
194194
assert_eq!(flags.is_end_of_record(), false);
195195
#[cfg(all(unix, not(target_os = "redox")))]
196196
assert_eq!(flags.is_out_of_band(), false);
197-
assert_eq!(flags.is_trunctated(), false);
197+
assert_eq!(flags.is_truncated(), false);
198198

199199
assert_eq!(&the, b"the");
200200
assert_eq!(&wee, b"wee");
@@ -247,7 +247,7 @@ fn send_from_recv_to_vectored() {
247247
assert_eq!(flags.is_end_of_record(), false);
248248
#[cfg(all(unix, not(target_os = "redox")))]
249249
assert_eq!(flags.is_out_of_band(), false);
250-
assert_eq!(flags.is_trunctated(), false);
250+
assert_eq!(flags.is_truncated(), false);
251251
assert_eq!(addr.as_inet6().unwrap(), addr_a.as_inet6().unwrap());
252252
assert_eq!(&surgeon, b"surgeon");
253253
assert_eq!(&has, b"has");
@@ -273,7 +273,7 @@ fn recv_vectored_truncated() {
273273
.recv_vectored(&mut [IoSliceMut::new(&mut buffer)], 0)
274274
.unwrap();
275275
assert_eq!(received, 24);
276-
assert_eq!(flags.is_trunctated(), true);
276+
assert_eq!(flags.is_truncated(), true);
277277
assert_eq!(&buffer, b"do not feed the gremlins");
278278
}
279279

@@ -297,7 +297,7 @@ fn recv_from_vectored_truncated() {
297297
.recv_from_vectored(&mut [IoSliceMut::new(&mut buffer)], 0)
298298
.unwrap();
299299
assert_eq!(received, 24);
300-
assert_eq!(flags.is_trunctated(), true);
300+
assert_eq!(flags.is_truncated(), true);
301301
assert_eq!(addr.as_inet6().unwrap(), addr_a.as_inet6().unwrap());
302302
assert_eq!(&buffer, b"do not feed the gremlins");
303303
}

0 commit comments

Comments
 (0)