Skip to content

Commit b2befab

Browse files
committed
check
1 parent 25f8a2e commit b2befab

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/actions/run_tests/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ runs:
3131
run: |
3232
cargo llvm-cov --no-report nextest
3333
cargo llvm-cov --no-report --doc
34-
cargo llvm-cov --all-features --lcov --output-path lcov.info
34+
cargo llvm-cov report --doctests --lcov --output-path lcov.info
3535
3636
- name: Run tests
3737
shell: bash

cli-tests/tests/upload.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ use context::{
2222
repo::{BundleRepo, RepoUrlParts as Repo},
2323
};
2424
use lazy_static::lazy_static;
25+
use more_asserts::assert_lt;
2526
use predicates::prelude::*;
2627
use pretty_assertions::assert_eq;
2728
use prost::Message;
@@ -115,7 +116,10 @@ async fn upload_bundle() {
115116
assert!(!base_props.repo.repo_head_sha.is_empty());
116117
let repo_head_sha_short = base_props.repo.repo_head_sha_short.unwrap();
117118
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+
);
119123
assert!(base_props
120124
.repo
121125
.repo_head_sha
@@ -138,7 +142,7 @@ async fn upload_bundle() {
138142
);
139143
let time_since_upload = chrono::Utc::now()
140144
- 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);
142146
assert_eq!(base_props.test_command, None);
143147
assert!(base_props.os_info.is_some());
144148
assert!(base_props.quarantined_tests.is_empty());

0 commit comments

Comments
 (0)