Skip to content

Commit

Permalink
Modified unit test parameters to better cover code, although the unit…
Browse files Browse the repository at this point in the history
… test does not assert the results. A better design of classes and unit test would be required to better decouple and test the code base.
  • Loading branch information
corentinaltepe committed Jul 30, 2023
1 parent 660695a commit 0b9565a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/NLog.Loki.Tests/LokiTargetTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ public Type GetLokiTransport(string endpointLayout)

var endpoint = Layout.FromString(endpointLayout);
using var target = new LokiTarget();
using var lokiTargetTransport = target.GetLokiTransport(endpoint, null, null, false, null, null, null);
using var lokiTargetTransport = target.GetLokiTransport(
endpoint, null, null, false,
"https://myproxy.com", "proxyDomain\\proxyUserA", "proxyPasswordA");
return lokiTargetTransport.GetType();
}
}
Expand Down

0 comments on commit 0b9565a

Please sign in to comment.