Skip to content

Commit

Permalink
feat: fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoxkang committed May 13, 2024
1 parent fe12adb commit 540316d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/CAServer.Grain.Tests/ClusterFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.Extensions.Options;
using Moq;
using Nest;
using Nethereum.Hex.HexConvertors.Extensions;
using Orleans;
using Orleans.Hosting;
Expand All @@ -33,6 +34,7 @@
using Volo.Abp.Reflection;
using Volo.Abp.Threading;
using Volo.Abp.Uow;
using LogLevel = Microsoft.Extensions.Logging.LogLevel;

namespace CAServer.Grain.Tests;

Expand All @@ -58,8 +60,9 @@ private class TestSiloConfigurations : ISiloBuilderConfigurator
{
public void Configure(ISiloHostBuilder hostBuilder)
{
var time = DateTime.UtcNow.Minute * 100 + DateTime.UtcNow.Second;
hostBuilder.ConfigureEndpoints(IPAddress.Any,
20001, 30001, true);
10000 + time, 20000 + time, true);
hostBuilder.ConfigureServices(services =>
{
var mockTokenProvider = new Mock<ITokenPriceProvider>();
Expand Down

0 comments on commit 540316d

Please sign in to comment.