Skip to content

Commit

Permalink
fix test and use latest coveralls tool
Browse files Browse the repository at this point in the history
  • Loading branch information
TGP authored and TGP committed Jan 20, 2022
1 parent 52555fc commit 69bd9a8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
"commands": [
"dotnet-cake"
]
},
"coveralls.net": {
"version": "3.0.0",
"commands": [
"csmacnz.Coveralls"
]
}
}
}
4 changes: 1 addition & 3 deletions build.cake
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
// #tool "nuget:?package=GitVersion.CommandLine&version=5.8.1"
#tool "dotnet:?package=GitVersion.Tool&version=5.8.1"
#tool "dotnet:?package=coveralls.net&version=3.0.0"
#addin nuget:?package=Cake.Json&version=4.0.0
#addin nuget:?package=Newtonsoft.Json
// #addin nuget:?package=System.Net.Http&version=4.3.4
#addin nuget:?package=System.Text.Encodings.Web&version=4.7.1
#tool "nuget:?package=ReportGenerator"
#tool "nuget:?package=coveralls.net&version=0.7.0"
#addin Cake.Coveralls&version=0.10.1

// compile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public KubeServiceDiscoveryProviderTests()
{
_serviceName = "test";
_namespaces = "dev";
_port = 86;
_port = 5567;
_kubeHost = "localhost";
_fakekubeServiceDiscoveryUrl = $"http://{_kubeHost}:{_port}";
_endpointEntries = new EndpointsV1();
Expand Down Expand Up @@ -94,11 +94,11 @@ public void should_return_service_from_k8s()
.Then(x => ThenTheCountIs(1))
.And(_ => ThenTheTokenIs(token))
.BDDfy();
}

private void ThenTheTokenIs(string token)
{
_receivedToken.ShouldBe(token);
}

private void ThenTheTokenIs(string token)
{
_receivedToken.ShouldBe(token);
}

private void ThenTheCountIs(int count)
Expand Down

0 comments on commit 69bd9a8

Please sign in to comment.