@@ -22,6 +22,7 @@ use context::{
22
22
repo:: { BundleRepo , RepoUrlParts as Repo } ,
23
23
} ;
24
24
use lazy_static:: lazy_static;
25
+ use more_asserts:: assert_lt;
25
26
use predicates:: prelude:: * ;
26
27
use pretty_assertions:: assert_eq;
27
28
use prost:: Message ;
@@ -115,7 +116,10 @@ async fn upload_bundle() {
115
116
assert ! ( !base_props. repo. repo_head_sha. is_empty( ) ) ;
116
117
let repo_head_sha_short = base_props. repo . repo_head_sha_short . unwrap ( ) ;
117
118
assert ! ( !repo_head_sha_short. is_empty( ) ) ;
118
- assert ! ( & repo_head_sha_short. len( ) < & base_props. repo. repo_head_sha. len( ) ) ;
119
+ assert_lt ! (
120
+ & repo_head_sha_short. len( ) ,
121
+ & base_props. repo. repo_head_sha. len( )
122
+ ) ;
119
123
assert ! ( base_props
120
124
. repo
121
125
. repo_head_sha
@@ -138,7 +142,7 @@ async fn upload_bundle() {
138
142
) ;
139
143
let time_since_upload = chrono:: Utc :: now ( )
140
144
- chrono:: DateTime :: from_timestamp ( base_props. upload_time_epoch as i64 , 0 ) . unwrap ( ) ;
141
- more_asserts :: assert_lt!( time_since_upload. num_minutes( ) , 5 ) ;
145
+ assert_lt ! ( time_since_upload. num_minutes( ) , 5 ) ;
142
146
assert_eq ! ( base_props. test_command, None ) ;
143
147
assert ! ( base_props. os_info. is_some( ) ) ;
144
148
assert ! ( base_props. quarantined_tests. is_empty( ) ) ;
0 commit comments