Skip to content

Commit

Permalink
fix: connection not found
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed May 12, 2022
1 parent 8c438aa commit 13d5fc2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/core/tests/postgres.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,10 @@ describe('postgres agents', () => {

// Receive invitation first time with alice agent
let { connectionRecord: bobConnectionAtBobAlice } = await bobAgent.oob.receiveInvitationFromUrl(invitationUrl)
bobConnectionAtBobAlice = await aliceAgent.connections.returnWhenIsConnected(bobConnectionAtBobAlice!.id)
bobConnectionAtBobAlice = await bobAgent.connections.returnWhenIsConnected(bobConnectionAtBobAlice!.id)

let aliceConnectionAtAliceBob = await aliceAgent.connections.getByThreadId(bobConnectionAtBobAlice.threadId!)
aliceConnectionAtAliceBob = await aliceAgent.connections.returnWhenIsConnected(aliceConnectionAtAliceBob.id)
// ===========================================================================

// const aliceConnectionAtAliceBob = await aliceAgent.connections.createConnection()
// const bobConnectionAtBobAlice = await bobAgent.connections.receiveInvitation(aliceConnectionAtAliceBob.invitation)

// aliceConnection = await aliceAgent.connections.returnWhenIsConnected(aliceConnectionAtAliceBob.connectionRecord.id)
// bobConnection = await bobAgent.connections.returnWhenIsConnected(bobConnectionAtBobAlice.id)

expect(aliceConnectionAtAliceBob).toBeConnectedWith(bobConnectionAtBobAlice)
expect(bobConnectionAtBobAlice).toBeConnectedWith(aliceConnectionAtAliceBob)
Expand Down

0 comments on commit 13d5fc2

Please sign in to comment.