Skip to content

Commit

Permalink
Keep consistency between function name and variable name (#98)
Browse files Browse the repository at this point in the history
Signed-off-by: kukgini <kukgini@gmail.com>
  • Loading branch information
kukgini authored Mar 27, 2024
1 parent 0a32211 commit 926929d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/AriesFrameworkTests/proofs/ProofsTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ProofsTest: XCTestCase {
try await super.tearDown()
}

func getCredentialRecord(for agent: Agent, threadId: String) async throws -> CredentialExchangeRecord {
func getCredentialExchangeRecord(for agent: Agent, threadId: String) async throws -> CredentialExchangeRecord {
let credentialRecord = try await agent.credentialExchangeRepository.getByThreadAndConnectionId(threadId: threadId, connectionId: nil)
return credentialRecord
}
Expand All @@ -49,11 +49,11 @@ class ProofsTest: XCTestCase {
comment: "Offer to Alice")).threadId
try await Task.sleep(nanoseconds: UInt64(1 * SECOND)) // Need enough time to finish exchange a credential.

let aliceCredentialRecord = try await getCredentialRecord(for: aliceAgent, threadId: threadId)
let faberCredentialRecord = try await getCredentialRecord(for: faberAgent, threadId: threadId)
let aliceCredExRecord = try await getCredentialExchangeRecord(for: aliceAgent, threadId: threadId)
let faberCredExRecord = try await getCredentialExchangeRecord(for: faberAgent, threadId: threadId)

XCTAssertEqual(aliceCredentialRecord.state, .Done)
XCTAssertEqual(faberCredentialRecord.state, .Done)
XCTAssertEqual(aliceCredExRecord.state, .Done)
XCTAssertEqual(faberCredExRecord.state, .Done)
}

func getProofRequest() async throws -> ProofRequest {
Expand Down

0 comments on commit 926929d

Please sign in to comment.