damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 0f9e87cb3709633238f73d2b03fec92223cefc74
parent 1fabd4c0fe98d1f47b1fa0f76984ad78095bd49c
Author: Daniel D’Aquino <daniel@daquino.me>
Date:   Fri,  6 Oct 2023 23:52:14 +0000

test: temporarily disable UserCacheManagerTests

Resolves build errors on the test target while we work on #1586

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
MdamusTests/UserSearchCacheTests.swift | 8+++++++-
MdamusTests/ZapTests.swift | 2+-
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/damusTests/UserSearchCacheTests.swift b/damusTests/UserSearchCacheTests.swift @@ -8,8 +8,9 @@ import XCTest @testable import damus +// TODO: Update these tests to work with NostrDB Profile changes (https://github.com/damus-io/damus/issues/1586) final class UserSearchCacheTests: XCTestCase { - + /* var keypair: FullKeypair? = nil let damusState = test_damus_state let nip05 = "_@somedomain.com" @@ -73,7 +74,9 @@ final class UserSearchCacheTests: XCTestCase { XCTAssertEqual(damusState.user_search_cache.search(key: "the"), [keypair.pubkey]) XCTAssertEqual(damusState.user_search_cache.search(key: "y"), [keypair.pubkey]) } + */ + /* func testUpdateOwnContactsPetnames() throws { let keypair = try XCTUnwrap(keypair) let damus = Pubkey(hex: "3efdaebb1d8923ebd99c9e7ace3b4194ab45512e2be79c1b7d68d9243e0d2681")! @@ -106,7 +109,9 @@ final class UserSearchCacheTests: XCTestCase { XCTAssertEqual(damusState.user_search_cache.search(key: "bill"), [jb55]) XCTAssertEqual(damusState.user_search_cache.search(key: "l"), [jb55]) } + */ + /* private func createContactsEventWithPetnames(pubkeysToPetnames: [Pubkey: String]) throws -> NostrEvent { let keypair = try XCTUnwrap(keypair) @@ -126,5 +131,6 @@ final class UserSearchCacheTests: XCTestCase { return NostrEvent(content: relayJson, keypair: keypair.to_keypair(), kind: NostrKind.contacts.rawValue, tags: tags)! } + */ } diff --git a/damusTests/ZapTests.swift b/damusTests/ZapTests.swift @@ -69,7 +69,7 @@ final class ZapTests: XCTestCase { XCTAssertEqual(zap.target, ZapTarget.profile(profile)) XCTAssertEqual(zap_notification_title(zap), "Zap") - XCTAssertEqual(zap_notification_body(profiles: Profiles(user_search_cache: UserSearchCache(), ndb: test_damus_state.ndb), zap: zap), "You received 1k sats from 107jk7ht:2quqncxg") + XCTAssertEqual(zap_notification_body(profiles: Profiles(ndb: test_damus_state.ndb), zap: zap), "You received 1k sats from 107jk7ht:2quqncxg") } }