[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:
Jeremy Meng 2023-08-01 15:26:39 -07:00 коммит произвёл GitHub
Родитель 857af81cc5
Коммит 8e9d3bb0d4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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 () => {