Skip to content

Commit

Permalink
fix: compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Oct 26, 2023
1 parent 7b79d87 commit 3f911d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/fixture/account/in_memory_account_repository.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
Expand Down

0 comments on commit 3f911d8

Please sign in to comment.