From 2c45c8aa6ee7e5d6a182ab0219b9fddc0f9f49a2 Mon Sep 17 00:00:00 2001 From: ieow Date: Fri, 15 Mar 2024 12:18:24 +0800 Subject: [PATCH] fix: testCase checking --- Tests/TorusUtilsTests/SapphireTest.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/TorusUtilsTests/SapphireTest.swift b/Tests/TorusUtilsTests/SapphireTest.swift index 0189a6a6..a25af3ac 100644 --- a/Tests/TorusUtilsTests/SapphireTest.swift +++ b/Tests/TorusUtilsTests/SapphireTest.swift @@ -271,7 +271,7 @@ final class SapphireTest: XCTestCase { XCTAssertEqual(pubAddress.metadata?.nonce, BigUInt.zero) XCTAssertEqual(pubAddress.metadata?.upgraded, false) XCTAssertEqual(pubAddress.metadata?.typeOfUser, UserType(rawValue: "v2")) - XCTAssertEqual(pubAddress.nodesData?.nodeIndexes.count, 5) + XCTAssertTrue(pubAddress.nodesData!.nodeIndexes.count >= 3) } func testLoginWhenHashEnabled() async throws {