Skip to content

Commit e81c0c5

Browse files
committed
Update
1 parent e8395c2 commit e81c0c5

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ jobs:
3737
name: artifacts
3838
path: artifacts
3939

40-
- name: Test Report
41-
uses: dorny/test-reporter@v1
42-
if: success() || failure()
43-
with:
44-
name: .NET Tests
45-
path: artifacts/test-results/*.trx
46-
reporter: dotnet-trx
47-
4840
grpc_web:
4941
name: gRPC-Web Tests
5042
runs-on: ubuntu-latest

test/Grpc.Net.Client.Tests/Balancer/ConnectionManagerTests.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,24 @@ public async Task PickAsync_ChannelStateChangesWithWaitForReady_WaitsForCorrectE
130130
waitForReady: true,
131131
CancellationToken.None).AsTask().DefaultTimeout();
132132

133+
_ = LogPickComplete(pickTask2, logger);
134+
133135
Assert.IsFalse(pickTask2.IsCompleted, "PickAsync should wait until an subchannel is ready.");
134136

137+
logger.LogInformation("Setting to ready subchannel.");
135138
resolver.UpdateAddresses(new List<BalancerAddress>
136139
{
137140
new BalancerAddress("localhost", 82)
138141
});
139142

140143
var result2 = await pickTask2.DefaultTimeout();
141144
Assert.AreEqual(new DnsEndPoint("localhost", 82), result2.Address!.EndPoint);
145+
146+
static async Task LogPickComplete(Task<(Subchannel Subchannel, BalancerAddress Address, ISubchannelCallTracker? SubchannelCallTracker)> pickTask2, ILogger logger)
147+
{
148+
await pickTask2.DefaultTimeout();
149+
logger.LogInformation("PickAsync complete.");
150+
}
142151
}
143152

144153
[Test]

0 commit comments

Comments
 (0)