Skip to content

Commit

Permalink
Stablize datalake test cases. (Azure#20332)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaZhu authored Feb 21, 2022
1 parent 2fd836f commit dba1283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/storage/storage-file-datalake/test/leaseclient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,14 @@ describe("LeaseClient from Directory", () => {
assert.equal(result.leaseState, "leased");
assert.equal(result.leaseStatus, "locked");

await leaseClient.breakLease(5);
await leaseClient.breakLease(15);

const result2 = await directoryClient.getProperties();
assert.ok(!result2.leaseDuration);
assert.equal(result2.leaseState, "breaking");
assert.equal(result2.leaseStatus, "locked");

await delay(5 * 1000);
await delay(15 * 1000);

const result3 = await directoryClient.getProperties();
assert.ok(!result3.leaseDuration);
Expand Down

0 comments on commit dba1283

Please sign in to comment.