Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
d-kiselev committed Oct 22, 2018
1 parent d07dc7d commit 0dea02c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion WavesCSTests/ExchangeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public void TestExchangeTransaction()
try
{
amountAsset = Assets.GetById("CVRciuSiK8xiNJSRitAG9dGqcmfFPHvn9bcXtntnpuvp", node);

if (node.GetBalance(Accounts.Alice.Address, amountAsset) < 0.1m)
throw new Exception();
}
catch (Exception)
{
Expand Down Expand Up @@ -72,7 +75,8 @@ public void TestExchangeTransaction()
exchangeTx.Sign(Accounts.Carol);
node.Broadcast(exchangeTx);

Thread.Sleep(7000);
Thread.Sleep(15000);


var aliceBalanceAfter = matcher.GetTradableBalance(Accounts.Alice.Address, amountAsset, priceAsset)[amountAsset];
var bobBalanceAfter = matcher.GetTradableBalance(Accounts.Bob.Address, amountAsset, priceAsset)[amountAsset];
Expand Down
3 changes: 3 additions & 0 deletions WavesCSTests/SponsoredFeeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public void TestSponsoredFeeTransaction()
try
{
asset = Assets.GetById("HkNSgxYpBLkzLb2vGYFFDrRT3gD5aoUnFV9eFav5DWpB", node);

if (node.GetBalance(Accounts.Alice.Address, asset) < 0.2001m)
throw new Exception();
}
catch (Exception)
{
Expand Down

0 comments on commit 0dea02c

Please sign in to comment.