Skip to content

Commit f4e2554

Browse files
lseongjooclaude
andcommitted
Rename a duplicate test binding so the trust store tests compile (#31)
6a573bb's new restored-file test declared `kept` twice in one scope, so ./build.sh test did not compile. Test-only rename. Agent: Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 6a573bb commit f4e2554

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Tests/AgentTrustStoreTests.swift‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ import Foundation
272272
let restoring = AgentTrustStore(url: restoreURL)
273273
let keptKey = P256.Signing.PrivateKey().publicKey.x963Representation
274274
let revokedKey = P256.Signing.PrivateKey().publicKey.x963Representation
275-
let kept = try restoring.trust(publicKey: keptKey, label: "K", host: hostA)
275+
let keptRow = try restoring.trust(publicKey: keptKey, label: "K", host: hostA)
276276
let revokedRow = try restoring.trust(publicKey: revokedKey, label: "R", host: hostB)
277277
precondition(restoring.setAutoReceive(true))
278278
let beforeRevoke = try Data(contentsOf: restoreURL)
@@ -283,11 +283,11 @@ import Foundation
283283
try AgentTrustStore.writePrivately(beforeRevoke, restoreURL)
284284
restoring.adoptDisk()
285285
precondition(restoring.lookup(keyID: revokedRow.keyID, host: hostB) == .revoked)
286-
precondition(restoring.clients.map(\.id) == [kept.id] && !restoring.changedOnDisk)
286+
precondition(restoring.clients.map(\.id) == [keptRow.id] && !restoring.changedOnDisk)
287287
precondition(!restoring.setReceiptEnabled(true, for: revokedRow.id))
288288
let restoredAgain = AgentTrustStore(url: restoreURL)
289289
precondition(restoredAgain.lookup(keyID: revokedRow.keyID, host: hostB) == .revoked)
290-
precondition(restoredAgain.clients.map(\.id) == [kept.id])
290+
precondition(restoredAgain.clients.map(\.id) == [keptRow.id])
291291
// The same when the old copy comes back while this instance holds it in
292292
// memory (no missing period in between).
293293
try AgentTrustStore.writePrivately(beforeRevoke, restoreURL)

0 commit comments

Comments
 (0)