From 8c4a0103bd3e32dcfc9dd57f19504df26778d3da Mon Sep 17 00:00:00 2001 From: Joseph Donofry <joedonofry@gmail.com> Date: Tue, 10 Dec 2019 20:46:48 -0500 Subject: [PATCH] Fix session export / import test --- .travis.yml | 4 ++-- tests/e2ee.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 166129111..1a3c8bf7b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,7 +52,7 @@ script: -e CC_VERSION=${CC_VERSION} \ -e COVERAGE=${COVERAGE} \ -e TRAVIS_OS_NAME=${TRAVIS_OS_NAME} \ - nheko-reborn/mtxclient \ + nhekoreborn/mtxclient \ /bin/bash -c "./.ci/script.sh" fi @@ -67,7 +67,7 @@ after_success: - | if [ $COVERAGE == ON ]; then docker run -v `pwd`:/build \ - --net=host nheko-reborn/mtxclient \ + --net=host nhekoreborn/mtxclient \ /bin/bash -c "make -C build -j1 test_coverage && ./.ci/coverage.sh" && \ bash <(curl -s https://codecov.io/bash) -f "!*tests*" || echo "Codecov failed" fi diff --git a/tests/e2ee.cpp b/tests/e2ee.cpp index 885789b09..baf58583d 100644 --- a/tests/e2ee.cpp +++ b/tests/e2ee.cpp @@ -1067,9 +1067,8 @@ TEST(ExportSessions, EncryptDecrypt) EXPECT_TRUE(ciphertext.size() > 0); auto encoded = bin2base64(ciphertext); - auto decoded = base642bin(encoded); - auto restored_keys = mtx::crypto::decrypt_exported_sessions(decoded, PASS); + auto restored_keys = mtx::crypto::decrypt_exported_sessions(encoded, PASS); EXPECT_EQ(json(keys).dump(), json(restored_keys).dump()); } -- GitLab