diff options
Diffstat (limited to 'text/regex/tests/regex.rs')
-rw-r--r-- | text/regex/tests/regex.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/text/regex/tests/regex.rs b/text/regex/tests/regex.rs index e9c2d04ad..25871c4b3 100644 --- a/text/regex/tests/regex.rs +++ b/text/regex/tests/regex.rs @@ -46,8 +46,8 @@ fn test_replace_all() { let buf = { let mut buf = gst::Buffer::from_mut_slice(Vec::from(&input[..])); let buf_ref = buf.get_mut().unwrap(); - buf_ref.set_pts(gst::ClockTime::from_seconds(0)); - buf_ref.set_duration(gst::ClockTime::from_seconds(2)); + buf_ref.set_pts(gst::ClockTime::ZERO); + buf_ref.set_duration(2.seconds()); buf }; @@ -56,7 +56,7 @@ fn test_replace_all() { let buf = h.pull().expect("Couldn't pull buffer"); assert_eq!(buf.pts(), Some(gst::ClockTime::ZERO)); - assert_eq!(buf.duration(), Some(2 * gst::ClockTime::SECOND)); + assert_eq!(buf.duration(), Some(2.seconds())); let map = buf.map_readable().expect("Couldn't map buffer readable"); |