Skip to content

Commit

Permalink
Replaced waiting for activation of sponsorship by waiting for the cer…
Browse files Browse the repository at this point in the history
…tain height then the sponsorship starts working.
  • Loading branch information
alexeykiselev committed Sep 13, 2024
1 parent 3fbb2a3 commit 4ce1485
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
3 changes: 1 addition & 2 deletions itests/issue_smart_asset_api_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
utl "github.com/wavesplatform/gowaves/itests/utilities"
"github.com/wavesplatform/gowaves/itests/utilities/issue"
"github.com/wavesplatform/gowaves/pkg/crypto"
"github.com/wavesplatform/gowaves/pkg/settings"
)

type IssueSmartAssetApiSuite struct {
Expand All @@ -39,7 +38,7 @@ func (suite *IssueSmartAssetApiSuite) Test_IssueSmartAssetApiPositive() {
}

func (suite *IssueSmartAssetApiSuite) Test_IssueSmartAssetApiNegative() {
utl.GetActivationOfFeatures(&suite.BaseSuite, settings.FeeSponsorship)
utl.WaitForHeight(&suite.BaseSuite, 3)
versions := issue.GetVersionsSmartAsset(&suite.BaseSuite)
txIds := make(map[string]*crypto.Digest)
for _, v := range versions {
Expand Down
3 changes: 1 addition & 2 deletions itests/issue_smart_asset_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
utl "github.com/wavesplatform/gowaves/itests/utilities"
"github.com/wavesplatform/gowaves/itests/utilities/issue"
"github.com/wavesplatform/gowaves/pkg/crypto"
"github.com/wavesplatform/gowaves/pkg/settings"
)

type IssueSmartAssetSuite struct {
Expand All @@ -39,7 +38,7 @@ func (suite *IssueSmartAssetSuite) Test_IssueSmartAssetPositive() {
}

func (suite *IssueSmartAssetSuite) Test_IssueSmartAssetNegative() {
utl.GetActivationOfFeatures(&suite.BaseSuite, settings.FeeSponsorship)
utl.WaitForHeight(&suite.BaseSuite, 3)
versions := issue.GetVersionsSmartAsset(&suite.BaseSuite)
txIds := make(map[string]*crypto.Digest)
for _, v := range versions {
Expand Down
3 changes: 1 addition & 2 deletions itests/issue_tx_api_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
utl "github.com/wavesplatform/gowaves/itests/utilities"
"github.com/wavesplatform/gowaves/itests/utilities/issue"
"github.com/wavesplatform/gowaves/pkg/crypto"
"github.com/wavesplatform/gowaves/pkg/settings"
)

type IssueTxApiSuite struct {
Expand Down Expand Up @@ -58,7 +57,7 @@ func (suite *IssueTxApiSuite) Test_IssueTxApiWithSameDataPositive() {
}

func (suite *IssueTxApiSuite) Test_IssueTxApiNegative() {
utl.GetActivationOfFeatures(&suite.BaseSuite, settings.FeeSponsorship)
utl.WaitForHeight(&suite.BaseSuite, 3)
versions := issue.GetVersions(&suite.BaseSuite)
txIds := make(map[string]*crypto.Digest)
for _, v := range versions {
Expand Down
3 changes: 1 addition & 2 deletions itests/issue_tx_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
utl "github.com/wavesplatform/gowaves/itests/utilities"
"github.com/wavesplatform/gowaves/itests/utilities/issue"
"github.com/wavesplatform/gowaves/pkg/crypto"
"github.com/wavesplatform/gowaves/pkg/settings"
)

type IssueTxSuite struct {
Expand Down Expand Up @@ -56,7 +55,7 @@ func (suite *IssueTxSuite) Test_IssueTxWithSameDataPositive() {
}

func (suite *IssueTxSuite) Test_IssueTxNegative() {
utl.GetActivationOfFeatures(&suite.BaseSuite, settings.FeeSponsorship)
utl.WaitForHeight(&suite.BaseSuite, 3)
versions := issue.GetVersions(&suite.BaseSuite)
txIds := make(map[string]*crypto.Digest)
for _, v := range versions {
Expand Down
5 changes: 2 additions & 3 deletions itests/set_asset_script_tx_api_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/wavesplatform/gowaves/itests/utilities/issue"
"github.com/wavesplatform/gowaves/itests/utilities/setassetscript"
"github.com/wavesplatform/gowaves/pkg/crypto"
"github.com/wavesplatform/gowaves/pkg/settings"
)

type SetAssetScriptApiSuite struct {
Expand Down Expand Up @@ -42,7 +41,7 @@ func (suite *SetAssetScriptApiSuite) Test_SetAssetScriptApiPositive() {
}

func (suite *SetAssetScriptApiSuite) Test_SetAssetScriptApiNegative() {
utl.GetActivationOfFeatures(&suite.BaseSuite, settings.FeeSponsorship)
utl.WaitForHeight(&suite.BaseSuite, 3)
versions := setassetscript.GetVersions(&suite.BaseSuite)
txIds := make(map[string]*crypto.Digest)
for _, v := range versions {
Expand All @@ -67,7 +66,7 @@ func (suite *SetAssetScriptApiSuite) Test_SetAssetScriptApiNegative() {
}

func (suite *SetAssetScriptApiSuite) Test_SetScriptForNotScriptedAssetApiNegative() {
utl.GetActivationOfFeatures(&suite.BaseSuite, settings.FeeSponsorship)
utl.WaitForHeight(&suite.BaseSuite, 3)
versions := setassetscript.GetVersions(&suite.BaseSuite)
txIds := make(map[string]*crypto.Digest)
for _, v := range versions {
Expand Down
5 changes: 2 additions & 3 deletions itests/set_asset_script_tx_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/wavesplatform/gowaves/itests/utilities/issue"
"github.com/wavesplatform/gowaves/itests/utilities/setassetscript"
"github.com/wavesplatform/gowaves/pkg/crypto"
"github.com/wavesplatform/gowaves/pkg/settings"
)

type SetAssetScriptSuite struct {
Expand All @@ -41,7 +40,7 @@ func (suite *SetAssetScriptSuite) Test_SetAssetScriptPositive() {
}

func (suite *SetAssetScriptSuite) Test_SetAssetScriptNegative() {
utl.GetActivationOfFeatures(&suite.BaseSuite, settings.FeeSponsorship)
utl.WaitForHeight(&suite.BaseSuite, 3)
versions := setassetscript.GetVersions(&suite.BaseSuite)
txIds := make(map[string]*crypto.Digest)
for _, v := range versions {
Expand All @@ -65,7 +64,7 @@ func (suite *SetAssetScriptSuite) Test_SetAssetScriptNegative() {
}

func (suite *SetAssetScriptSuite) Test_SetScriptForNotScriptedAssetNegative() {
utl.GetActivationOfFeatures(&suite.BaseSuite, settings.FeeSponsorship)
utl.WaitForHeight(&suite.BaseSuite, 3)
versions := setassetscript.GetVersions(&suite.BaseSuite)
txIds := make(map[string]*crypto.Digest)
for _, v := range versions {
Expand Down

0 comments on commit 4ce1485

Please sign in to comment.