From 3f911d8ff7cfdf41cead1e4e152094ba65d389b8 Mon Sep 17 00:00:00 2001 From: Eduardo Dantas Date: Thu, 26 Oct 2023 10:33:26 -0300 Subject: [PATCH] fix: compilation --- tests/fixture/account/in_memory_account_repository.hpp | 2 +- tests/integration/main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/fixture/account/in_memory_account_repository.hpp b/tests/fixture/account/in_memory_account_repository.hpp index dd4e77881b1..e67f6bb484b 100644 --- a/tests/fixture/account/in_memory_account_repository.hpp +++ b/tests/fixture/account/in_memory_account_repository.hpp @@ -41,7 +41,7 @@ namespace account::tests { return false; } - bool loadByEmail(const std::string &email, AccountInfo &acc) final { + bool loadByEmailOrName(const std::string &email, AccountInfo &acc) final { auto account = accounts.find(email); if (account == accounts.end()) { diff --git a/tests/integration/main.cpp b/tests/integration/main.cpp index 91fd28a30cd..15e45e06b5e 100644 --- a/tests/integration/main.cpp +++ b/tests/integration/main.cpp @@ -78,13 +78,13 @@ int main() { expect(eq(acc.sessionExpires, 0)); }); - test("AccountRepositoryDB::loadByEmail") = databaseTest(db, [&db] { + test("AccountRepositoryDB::loadByEmailOrName") = databaseTest(db, [&db] { InMemoryLogger logger {}; AccountRepositoryDB accRepo { db, logger }; createAccount(db); AccountInfo acc {}; - accRepo.loadByEmail("@test", acc); + accRepo.loadByEmailOrName("@test", acc); assertAccountLoad(acc); expect(eq(acc.sessionExpires, 0)); });