Skip to content

Commit

Permalink
add sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
0xverin committed Dec 19, 2024
1 parent 346f7af commit da10647
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {
getOmniAccountNonce,
sendRequestFromTrustedCall,
} from './common/utils/native-request-helpers';
import { sleep } from './common/utils';

describe('Test native vc_request', function () {
this.timeout(6000000);
Expand Down Expand Up @@ -129,6 +130,7 @@ describe('Test native vc_request', function () {
true // public account
);
await sendRequestFromTrustedCall(context, teeShieldingKey, addTwitterAccountCall);
await sleep(12);
accountStore = await context.api.query.omniAccount.accountStore(omniAccount);
membersCount = accountStore.unwrap().length;
assert.equal(membersCount, 2, 'account store members count should be 2');
Expand Down Expand Up @@ -156,6 +158,8 @@ describe('Test native vc_request', function () {
true // public account
);
await sendRequestFromTrustedCall(context, teeShieldingKey, addEvmAccountCall);
await sleep(12);

accountStore = await context.api.query.omniAccount.accountStore(omniAccount);
membersCount = accountStore.unwrap().length;
assert.equal(membersCount, 3, 'account store members count should be 3');
Expand Down Expand Up @@ -183,6 +187,8 @@ describe('Test native vc_request', function () {
true // public account
);
await sendRequestFromTrustedCall(context, teeShieldingKey, addBitcoinAccountCall);
await sleep(12);

accountStore = await context.api.query.omniAccount.accountStore(omniAccount);
membersCount = accountStore.unwrap().length;
assert.equal(membersCount, 4, 'account store members count should be 4');
Expand Down

0 comments on commit da10647

Please sign in to comment.