Skip to content

Commit

Permalink
Update SmtpServerTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Sep 22, 2024
1 parent 8eff89b commit 63d6db2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Src/SmtpServer.Tests/SmtpServerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ public async Task SessionTimeoutIsExceeded_NoCommands()
.Certificate(CreateCertificate())
);

var stopwatch = new Stopwatch();
stopwatch.Start();

using var tcpClient = new TcpClient(server, port);
using var sslStream = new SslStream(tcpClient.GetStream(), false, new RemoteCertificateValidationCallback(ValidateServerCertificate), null);

Expand All @@ -420,9 +423,6 @@ public async Task SessionTimeoutIsExceeded_NoCommands()
{
var buffer = new byte[1024];

var stopwatch = new Stopwatch();
stopwatch.Start();

var welcomeByteCount = await sslStream.ReadAsync(buffer, 0, buffer.Length);

var emptyResponseCount = await sslStream.ReadAsync(buffer, 0, buffer.Length);
Expand Down

0 comments on commit 63d6db2

Please sign in to comment.