summaryrefslogtreecommitdiff
path: root/test/test_time.rs
diff options
context:
space:
mode:
authorMichael Baikov <manpacket@gmail.com>2022-08-10 08:55:45 +0800
committerMichael Baikov <manpacket@gmail.com>2022-08-12 08:29:29 +0800
commit384d47d25e39b3e2cdbc2a8c28ec68abb709de64 (patch)
tree0bf117466ccb206494d3cb03dace52d9fe5b29ef /test/test_time.rs
parentd9a79042524af17c49f5681cfc576d758021808f (diff)
downloadnix-384d47d25e39b3e2cdbc2a8c28ec68abb709de64.zip
Folloup for !1778, remove some of the less helpful error msgs
Diffstat (limited to 'test/test_time.rs')
-rw-r--r--test/test_time.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_time.rs b/test/test_time.rs
index 3e8af653..5f76e61a 100644
--- a/test/test_time.rs
+++ b/test/test_time.rs
@@ -29,18 +29,18 @@ pub fn test_clock_gettime() {
#[test]
pub fn test_clock_getcpuclockid() {
let clock_id = clock_getcpuclockid(nix::unistd::Pid::this()).unwrap();
- clock_gettime(clock_id).expect("assert failed");
+ clock_gettime(clock_id).unwrap();
}
#[cfg(not(target_os = "redox"))]
#[test]
pub fn test_clock_id_res() {
- ClockId::CLOCK_REALTIME.res().expect("assert failed");
+ ClockId::CLOCK_REALTIME.res().unwrap();
}
#[test]
pub fn test_clock_id_now() {
- ClockId::CLOCK_REALTIME.now().expect("assert failed");
+ ClockId::CLOCK_REALTIME.now().unwrap();
}
#[cfg(any(
@@ -54,6 +54,6 @@ pub fn test_clock_id_now() {
pub fn test_clock_id_pid_cpu_clock_id() {
ClockId::pid_cpu_clock_id(nix::unistd::Pid::this())
.map(ClockId::now)
- .expect("assert failed")
- .expect("assert failed");
+ .unwrap()
+ .unwrap();
}