mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-12-24 09:55:48 +08:00
Feat/net6.0 upgrade (#1558)
* +semver: major upgrading from net5.0 to net6.0 * packages upgraded * removed global.json for ocelot sf sample * update build image * test new build * remove make * fix tests * make test fail like in CI * tests passing locally * updated docs Co-authored-by: TGP <thomasgardham-pallister@Thomass-MacBook-Pro-2.local>
This commit is contained in:
@@ -23,9 +23,12 @@
|
||||
_eurekaInstances = new List<IServiceInstance>();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void should_use_eureka_service_discovery_and_make_request()
|
||||
[Theory]
|
||||
[InlineData(true)]
|
||||
[InlineData(false)]
|
||||
public void should_use_eureka_service_discovery_and_make_request(bool dotnetRunningInContainer)
|
||||
{
|
||||
Environment.SetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER", dotnetRunningInContainer.ToString());
|
||||
var eurekaPort = 8761;
|
||||
var serviceName = "product";
|
||||
var downstreamServicePort = RandomPortFinder.GetRandomPort();
|
||||
@@ -166,7 +169,7 @@
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
{
|
||||
_serviceHandler?.Dispose();
|
||||
_steps.Dispose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user