Skip to content

Commit 6271269

Browse files
authored
Fix variable names and update session handling
1 parent 176bdf7 commit 6271269

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

check_green.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,16 @@ def _build_and_validate_wheel() -> None:
131131
"pending_alice = SessionFactory.initiator(",
132132
" local_identity=alice,",
133133
" remote_name=bob.name,",
134+
" remote_signing_public_key=bob.ed25519_public_bytes(),",
134135
" suite=AeadSuite.AES_GCM_SIV,",
135136
")",
136-
"response, bob_session = SessionFactory.responder(",
137+
"response, pending_bob = SessionFactory.responder(",
137138
" local_identity=bob,",
139+
" remote_signing_public_key=alice.ed25519_public_bytes(),",
138140
" offer=pending_alice.offer,",
139141
")",
140-
"alice_session = pending_alice.complete(response)",
142+
"confirmation, alice_session = pending_alice.complete(response)",
143+
"bob_session = pending_bob.complete(confirmation)",
141144
"packet = alice_session.encrypt(b'installed-wheel-smoke-test')",
142145
"if bob_session.decrypt(packet) != b'installed-wheel-smoke-test':",
143146
" raise RuntimeError('installed wheel failed encryption round trip')",

0 commit comments

Comments
 (0)