Skip to content

Commit

Permalink
Fix sessions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusx1211 committed Jun 22, 2023
1 parent ac630fc commit d3e84d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/auth/tests/session.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ describe('Wallet integration', function () {
const newSession = await Session.open({
settings: simpleSettings,
referenceSigner: referenceSigner.address,
addSigners: [{ address: newSigner.address, weight: 1 }],
addSigners: [{ address: referenceSigner.address, weight: 1, }, { address: newSigner.address, weight: 1 }],
threshold: 1,
metadata: {
name: 'Test'
Expand Down Expand Up @@ -909,6 +909,7 @@ describe('Wallet integration', function () {
it('Should retry 5 times retrieving the JWT token', async () => {
delayMs = 1000
const referenceSigner = randomWallet('Should retry 5 times retrieving the JWT token')
orchestrator.setSigners([referenceSigner])

const session = await Session.open({
settings,
Expand Down Expand Up @@ -1134,6 +1135,7 @@ describe('Wallet integration', function () {

it('Should neither re-authenticate nor retry if request succeeds', async () => {
const referenceSigner = new CountingSigner(randomWallet('Should neither re-authenticate nor retry if request succeeds'))
orchestrator.setSigners([referenceSigner])

const session = await Session.open({
settings,
Expand Down

0 comments on commit d3e84d9

Please sign in to comment.