Skip to content

Commit

Permalink
Additional fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbuda committed May 19, 2024
1 parent 8941ac0 commit 844b3c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ jobs:
runs-on: ubuntu-latest
container:
image: centos:8

steps:
- name: Modify repo files of centos image
run: |
Expand All @@ -64,7 +63,7 @@ jobs:
- name: Install rustup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
echo "$HOME/.cargo/env" >> $GITHUB_PATH
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion src/connection/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ fn fetchone_summary() {
}

let summary = connection.summary().unwrap();
assert_eq!(7, summary.len());
assert_eq!(8, summary.len());
for key in &[
"cost_estimate",
"has_more",
Expand Down
4 changes: 2 additions & 2 deletions src/value/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ fn from_c_mg_value_duration() {
Value::Duration(Duration::days(10) + Duration::seconds(100) + Duration::nanoseconds(1000)),
mg_value
);
assert_eq!(format!("{}", mg_value), "'P10DT100.000001S'");
assert_eq!(format!("{}", mg_value), "'PT864100.000001S'");
}

#[test]
Expand Down Expand Up @@ -822,7 +822,7 @@ fn from_duration_to_mg_value_1() {
bindings::mg_value_type_MG_VALUE_TYPE_DURATION
);
let mg_value = unsafe { Value::from_mg_value(&c_mg_value) };
assert_eq!(mg_value.to_string(), "'P1DT3S'");
assert_eq!(mg_value.to_string(), "'PT86403S'");
match mg_value {
Value::Duration(x) => {
assert_eq!(x.num_weeks(), 0);
Expand Down

0 comments on commit 844b3c3

Please sign in to comment.