From 3152c635d955a5db302316f0e25628983c443d6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Thu, 22 Apr 2021 10:20:53 -0400
Subject: [PATCH] unittest: fix build

Change-Id: I4bfaf16797afefba0e33b1f58bfc5f56a6a0ef63
---
 .../conversationRepository/conversationRepository.cpp         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/unitTest/conversationRepository/conversationRepository.cpp b/test/unitTest/conversationRepository/conversationRepository.cpp
index 86865e93e7..4704496766 100644
--- a/test/unitTest/conversationRepository/conversationRepository.cpp
+++ b/test/unitTest/conversationRepository/conversationRepository.cpp
@@ -256,7 +256,7 @@ ConversationRepositoryTest::testCloneViaChannelSocket()
         });
 
     aliceAccount->connectionManager().onChannelRequest(
-        [&successfullyReceive](const DeviceId&, const std::string& name) { return true; });
+        [&successfullyReceive](const DeviceId&, const std::string&) { return true; });
 
     bobAccount->connectionManager().onConnectionReady(
         [&](const DeviceId&, const std::string& name, std::shared_ptr<ChannelSocket> socket) {
@@ -605,7 +605,7 @@ ConversationRepositoryTest::addCommit(git_repository* repo,
     // git commit -S
     auto to_sign_vec = std::vector<uint8_t>(to_sign.ptr, to_sign.ptr + to_sign.size);
     auto signed_buf = account->identity().first->sign(to_sign_vec);
-    std::string signed_str = base64::encode(signed_buf.begin(), signed_buf.end());
+    std::string signed_str = base64::encode(signed_buf);
     if (git_commit_create_with_signature(&commit_id,
                                          repo,
                                          to_sign.ptr,
-- 
GitLab