Fix test compilation issues

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
Daniel D’Aquino
2025-09-03 15:54:00 -07:00
parent 9fb7ed741e
commit 2550d613b2
2 changed files with 10 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ import XCTest
final class LargeEventTests: XCTestCase {
func testLongPost() throws {
func testLongPost() async throws {
let json = "[\"EVENT\",\"subid\",\(test_failing_nostr_report)]"
let resp = NostrResponse.owned_from_json(json: json)
@@ -25,7 +25,8 @@ final class LargeEventTests: XCTestCase {
XCTAssertEqual(subid, "subid")
XCTAssertTrue(ev.should_show_event)
XCTAssertTrue(!ev.too_big)
XCTAssertTrue(should_show_event(state: test_damus_state, ev: ev))
let shouldShowEvent = await should_show_event(state: test_damus_state, ev: ev)
XCTAssertTrue(shouldShowEvent)
XCTAssertTrue(validate_event(ev: ev) == .ok)
}