Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(playwrighttesting): await upload buffer method
  • Loading branch information
Sid200026 committed Nov 11, 2024
commit a2a564a973f57442395b8036685c3821dff413a2
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ public void TestRunCompleteHandler(object? sender, TestRunCompleteEventArgs e)
// Upload rawResult to blob storage using sasUri
var rawTestResultJson = JsonSerializer.Serialize(rawResult);
var filePath = $"{testResult.TestExecutionId}/rawTestResult.json";
_blobService.UploadBufferAsync(sasUri!.Uri!, rawTestResultJson, filePath);
#pragma warning disable AZC0102 // Do not use GetAwaiter().GetResult().
_blobService.UploadBufferAsync(sasUri!.Uri!, rawTestResultJson, filePath).GetAwaiter().GetResult();
#pragma warning restore AZC0102 // Do not use GetAwaiter().GetResult().
}
else
{
Expand Down