Skip to content

Commit 69bd9a8

Browse files
TGPTGP
authored andcommitted
fix test and use latest coveralls tool
1 parent 52555fc commit 69bd9a8

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

.config/dotnet-tools.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
"commands": [
88
"dotnet-cake"
99
]
10+
},
11+
"coveralls.net": {
12+
"version": "3.0.0",
13+
"commands": [
14+
"csmacnz.Coveralls"
15+
]
1016
}
1117
}
1218
}

build.cake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
// #tool "nuget:?package=GitVersion.CommandLine&version=5.8.1"
21
#tool "dotnet:?package=GitVersion.Tool&version=5.8.1"
2+
#tool "dotnet:?package=coveralls.net&version=3.0.0"
33
#addin nuget:?package=Cake.Json&version=4.0.0
44
#addin nuget:?package=Newtonsoft.Json
5-
// #addin nuget:?package=System.Net.Http&version=4.3.4
65
#addin nuget:?package=System.Text.Encodings.Web&version=4.7.1
76
#tool "nuget:?package=ReportGenerator"
8-
#tool "nuget:?package=coveralls.net&version=0.7.0"
97
#addin Cake.Coveralls&version=0.10.1
108

119
// compile

test/Ocelot.UnitTests/Kubernetes/KubeServiceDiscoveryProviderTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public KubeServiceDiscoveryProviderTests()
3838
{
3939
_serviceName = "test";
4040
_namespaces = "dev";
41-
_port = 86;
41+
_port = 5567;
4242
_kubeHost = "localhost";
4343
_fakekubeServiceDiscoveryUrl = $"http://{_kubeHost}:{_port}";
4444
_endpointEntries = new EndpointsV1();
@@ -94,11 +94,11 @@ public void should_return_service_from_k8s()
9494
.Then(x => ThenTheCountIs(1))
9595
.And(_ => ThenTheTokenIs(token))
9696
.BDDfy();
97-
}
98-
99-
private void ThenTheTokenIs(string token)
100-
{
101-
_receivedToken.ShouldBe(token);
97+
}
98+
99+
private void ThenTheTokenIs(string token)
100+
{
101+
_receivedToken.ShouldBe(token);
102102
}
103103

104104
private void ThenTheCountIs(int count)

0 commit comments

Comments
 (0)