damus

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

commit 6e0af0ba103f9eef32e1f47a0a0667e89ba864ce
parent a2cac142c077f3a91f3d719b400a4a09ff7761cf
Author: Daniel D’Aquino <daniel@daquino.me>
Date:   Fri, 22 Dec 2023 21:48:59 +0000

tests: Disable NostrScriptTests.test_bool_set to reduce noise on CI/CD

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/NostrScriptTests.swift | 55++++++++++++++++++++++++++++---------------------------
1 file changed, 28 insertions(+), 27 deletions(-)

diff --git a/damusTests/NostrScriptTests.swift b/damusTests/NostrScriptTests.swift @@ -36,33 +36,34 @@ final class NostrScriptTests: XCTestCase { } func test_bool_set() throws { - let data = try load_bool_set_test_wasm().bytes - let pool = RelayPool(ndb: .empty) - let script = NostrScript(pool: pool, data: data) - let pk = Pubkey(hex: "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245")! - UserSettingsStore.pubkey = pk - let key = pk_setting_key(pk, key: "nozaps") - UserDefaults.standard.set(true, forKey: key) - - let load_err = script.load() - XCTAssertNil(load_err) - - let res = script.run() - switch res { - case .finished: - let set = UserDefaults.standard.bool(forKey: key) - XCTAssertEqual(set, false) - case .runtime_err(let errs): - var c = 0 - for err in errs { - print("\(c) test_bool_set runtime err: \(err)") - c += 1 - } - XCTAssert(false) - case .suspend: - XCTAssert(false) - break - } + // FIXME: https://github.com/damus-io/damus/issues/1835 +// let data = try load_bool_set_test_wasm().bytes +// let pool = RelayPool(ndb: .empty) +// let script = NostrScript(pool: pool, data: data) +// let pk = Pubkey(hex: "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245")! +// UserSettingsStore.pubkey = pk +// let key = pk_setting_key(pk, key: "nozaps") +// UserDefaults.standard.set(true, forKey: key) +// +// let load_err = script.load() +// XCTAssertNil(load_err) +// +// let res = script.run() +// switch res { +// case .finished: +// let set = UserDefaults.standard.bool(forKey: key) +// XCTAssertEqual(set, false) +// case .runtime_err(let errs): +// var c = 0 +// for err in errs { +// print("\(c) test_bool_set runtime err: \(err)") +// c += 1 +// } +// XCTAssert(false) +// case .suspend: +// XCTAssert(false) +// break +// } } /*