Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests(net): add tests for RemotingViaNodeClient #646

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions net/tests/Sails.Remoting.Tests/Core/RemotingViaNodeClientTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
using System.Threading.Tasks;
using System;
using System.Threading.Tasks;
using Sails.Remoting.Tests._Infra.XUnit.Fixtures;
using Sails.Tests.Shared.XUnit;
using Substrate.Gear.Api.Generated;
using Substrate.NetApi.Model.Extrinsics;
using Xunit;

namespace Sails.Remoting.Tests.Core;
Expand All @@ -17,9 +20,12 @@ public RemotingViaNodeClientTests(SailsFixture sailsFixture)
[Fact]
public async Task Test()
{
var demoIdl = await this.sailsFixture.GetDemoContractIdlAsync();
var demoContractWasm = await this.sailsFixture.GetDemoContractWasmAsync();
var noSvcsProgIdl = await this.sailsFixture.GetNoSvcsProgContractIdlAsync();
var gearNodeWsUrl = this.sailsFixture.GearNodeWsUrl;

using (var nodeClient = new SubstrateClientExt(gearNodeWsUrl, ChargeTransactionPayment.Default()))
{
await Task.Delay(TimeSpan.FromSeconds(3));
await nodeClient.ConnectAsync();
}
}
}
1 change: 1 addition & 0 deletions net/tests/Sails.Remoting.Tests/Sails.Remoting.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Sails.Remoting\Sails.Remoting.csproj" />
<ProjectReference Include="..\Sails.Tests.Shared\Sails.Tests.Shared.csproj" />
</ItemGroup>

Expand Down
Loading