[storage-file-share] Fix DirectoryClient `exists` test (#26640)
Two tests are not awaiting on `dirClient.exists()` calls, which some times caused weird test failure probably due to different timing in async calls where test recorder couldn't find recording for some tests. This PR adds await for the two calls.
This commit is contained in:
Родитель
857af81cc5
Коммит
8e9d3bb0d4
|
@ -1921,7 +1921,7 @@ describe("DirectoryClient - AllowingTrailingDots - True", () => {
|
|||
});
|
||||
|
||||
it("exists", async () => {
|
||||
assert.ok(dirClient.exists(), "The directory with trailing dot should exists");
|
||||
assert.ok(await dirClient.exists(), "The directory with trailing dot should exists");
|
||||
});
|
||||
|
||||
it("deleteIfExists", async () => {
|
||||
|
@ -2189,7 +2189,7 @@ describe("DirectoryClient - AllowingTrailingDots - False", () => {
|
|||
});
|
||||
|
||||
it("exists", async () => {
|
||||
assert.ok(dirClient.exists(), "The directory with trailing dot should exists");
|
||||
assert.ok(await dirClient.exists(), "The directory with trailing dot should exists");
|
||||
});
|
||||
|
||||
it("deleteIfExists", async () => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче