Skip to content
Snippets Groups Projects
Verified Commit 8c4a0103 authored by Joe Donofry's avatar Joe Donofry
Browse files

Fix session export / import test

parent 64182a84
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment