test: switch test to use failable transactions

This commit is contained in:
William Casarin committed 2024-01-10 15:38:21 -08:00
1 parent 091a8ae090
commit afe3dcf039
3 files changed
+12 -13

No files matched your search

+1 -1
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]
}