Skip to content

Commit

Permalink
Update code from pr review.
Browse files Browse the repository at this point in the history
  • Loading branch information
marabooy committed Sep 10, 2024
1 parent af4bcb0 commit 841a978
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ public class MessageWriterConcurrencyTests
/// <summary>
/// Verifies that concurrent message writer does not interleave execution and isolates the underlying streams.
/// </summary>
/// <returns>A task for the asyncronous test</returns>

/// <returns>A task for the asynchronous test</returns>
[Fact]
public async Task VerifyConcurrentResultsAreConsistentAsync()
public async Task VerifyConcurrentResultsAreIsolatedAsync()
{
ServiceCollection services = new();
services.AddDefaultODataServices();
Expand All @@ -44,7 +43,7 @@ public async Task VerifyConcurrentResultsAreConsistentAsync()


/// <summary>
/// A helper function that writes to a strem using the message writer and returns the content that is present in the stream.
/// A helper function that writes to a stream using the message writer and returns the content that is present in the stream.
/// </summary>
/// <param name="content">String content to write.</param>
/// <param name="serviceProvider">A service provider with the default configurations.</param>
Expand All @@ -66,9 +65,9 @@ private static async Task<string> WritePayloadAsync(string content, IServiceProv

await Task.Yield();

string writen = await reader.ReadToEndAsync();
string written = await reader.ReadToEndAsync();
await writer.DisposeAsync();
return writen;
return written;
}


Expand Down

0 comments on commit 841a978

Please sign in to comment.