Skip to content

Commit b2acde6

Browse files
committed
test: adapting to specific DID
1 parent c0ab841 commit b2acde6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration/external/Olas.e2e.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ describe('OLAS e2e tests', () => {
226226
console.log(
227227
`Credits Balance Before (JSON): ${JSON.stringify(creditsBalanceBefore.toString())}`,
228228
)
229-
assert.isTrue(creditsBalanceBefore === 0n)
229+
if (!USE_EXISTING_PLAN) assert.isTrue(creditsBalanceBefore === 0n)
230230

231231
try {
232232
const receipt = await nevermined.nfts1155.claim(
@@ -260,7 +260,7 @@ describe('OLAS e2e tests', () => {
260260
)
261261
const balanceAfter = await subscriptionNFT.balance(subscriptionDDO.id, subscriber.getId())
262262
console.log(`Balance After Purchase is completed: ${balanceAfter}`)
263-
assert.isTrue(balanceAfter === SUBSCRIPTION_CREDITS)
263+
assert.isTrue(balanceAfter >= SUBSCRIPTION_CREDITS)
264264
})
265265

266266
it('the editor and reseller can receive their payment', async () => {

0 commit comments

Comments
 (0)