test: switch test to use failable transactions

This commit is contained in:
William Casarin
2024-01-10 15:38:21 -08:00
parent 091a8ae090
commit afe3dcf039
3 changed files with 12 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ class MockProfiles: Profiles {
super.init(ndb: ndb)
}
override func lookup(id: Pubkey) -> NdbTxn<Profile?> {
override func lookup(id: Pubkey) -> NdbTxn<Profile?>? {
return NdbTxn(ndb: self.ndb) { txn in
return self.mocked_profiles[id]
}