Skip to content

Commit

Permalink
Fix service URL integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
ntn-x2 committed Apr 29, 2024
1 parent dc9a9b1 commit e003efe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/integration/Did.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1268,8 +1268,7 @@ describe('Runtime constraints', () => {
})

it('should not be possible to create a DID with a service endpoint that has a URI that is too long', async () => {
const uri =
'a:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
const uri = `a:${'a'.repeat(1_999)}`
const limit = api.consts.did.maxServiceUrlLength.toNumber()
expect(uri.length).toBeGreaterThan(limit)
})
Expand Down

0 comments on commit e003efe

Please sign in to comment.