Skip to content

Commit

Permalink
test: Add logging and remove unnecessary codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
s2quake committed Jun 15, 2024
1 parent 3c7ad30 commit ad67289
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 deletions.
8 changes: 4 additions & 4 deletions test/JSSoft.Communication.Tests/CallbackTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,20 @@ public void Callback3_Test()

public async Task InitializeAsync()
{
_logger.WriteLine($"InitializeAsync 1");
_serverToken = await _serverContext.OpenAsync(CancellationToken.None);
_logger.WriteLine($"Server is opened: {_serverToken}");
_clientToken = await _clientContext.OpenAsync(CancellationToken.None);
_logger.WriteLine($"Client is opened: {_clientToken}");
_server = _testServer;
_logger.WriteLine($"InitializeAsync 2");
}

public async Task DisposeAsync()
{
_logger.WriteLine($"DisposeAsync 1");
await _serverContext.ReleaseAsync(_serverToken);
_logger.WriteLine($"Server is released: {_serverToken}");
await _clientContext.ReleaseAsync(_clientToken);
_logger.WriteLine($"Client is released: {_clientToken}");
_endPoint.Dispose();
_logger.WriteLine($"DisposeAsync 2");
}

public class ValueEventArgs(object? value) : EventArgs
Expand Down
24 changes: 0 additions & 24 deletions test/JSSoft.Communication.Tests/TestLogger.cs

This file was deleted.

0 comments on commit ad67289

Please sign in to comment.