Skip to content

Commit 7891d04

Browse files
committed
test: remove no-account close test (account is now required)
1 parent f908e95 commit 7891d04

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/tempo/server/Session.test.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,29 +1237,6 @@ describe.runIf(isLocalnet)('session', () => {
12371237
const ch = await store.getChannel(channelId)
12381238
expect(ch!.finalized).toBe(true)
12391239
})
1240-
1241-
test('close throws when client has no account', async () => {
1242-
const { channelId, serializedTransaction } = await createSignedOpenTransaction(10000000n)
1243-
const server = createServer({
1244-
getClient: () => createClient({ chain, transport: http() }),
1245-
})
1246-
await openServerChannel(server, channelId, serializedTransaction)
1247-
1248-
await expect(
1249-
server.verify({
1250-
credential: {
1251-
challenge: makeChallenge({ id: 'challenge-2', channelId }),
1252-
payload: {
1253-
action: 'close' as const,
1254-
channelId,
1255-
cumulativeAmount: '1000000',
1256-
signature: await signTestVoucher(channelId, 1000000n),
1257-
},
1258-
},
1259-
request: makeRequest(),
1260-
}),
1261-
).rejects.toThrow('Cannot close channel: no account available')
1262-
})
12631240
})
12641241

12651242
describe('full lifecycle', () => {

0 commit comments

Comments
 (0)