Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep consistency between function name and variable name #98

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading