From 844b3c3717ac084ab484fccd503baa36ac9a2459 Mon Sep 17 00:00:00 2001 From: Marko Budiselic Date: Sun, 19 May 2024 10:30:21 +0200 Subject: [PATCH] Additional fixes --- .github/workflows/ci.yml | 3 +-- src/connection/tests.rs | 2 +- src/value/tests.rs | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a887e2..26d40b3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,6 @@ jobs: runs-on: ubuntu-latest container: image: centos:8 - steps: - name: Modify repo files of centos image run: | @@ -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: diff --git a/src/connection/tests.rs b/src/connection/tests.rs index 962cc92..d8dca5a 100644 --- a/src/connection/tests.rs +++ b/src/connection/tests.rs @@ -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", diff --git a/src/value/tests.rs b/src/value/tests.rs index 16a1ffd..5d2b079 100644 --- a/src/value/tests.rs +++ b/src/value/tests.rs @@ -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] @@ -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);