Skip to content

Commit

Permalink
fix: app transfer module-integration test; remove problematic build c…
Browse files Browse the repository at this point in the history
…onstraint
  • Loading branch information
bryanchriswhite committed Dec 2, 2024
1 parent f35e879 commit 78c843a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
17 changes: 9 additions & 8 deletions tests/integration/application/application_transfer_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build integration

package application

import (
Expand All @@ -20,7 +18,7 @@ import (

var (
appFundAmount = int64(100000000)
stakeAmount = int64(100)
stakeAmount = int64(10000000)

service1Id = "svc1"
service2Id = "svc2"
Expand Down Expand Up @@ -66,8 +64,8 @@ func (s *appTransferTestSuite) SetupTest() {

// Stake app1 and app2.
s.setupStakeApps(map[string][]string{
s.app1: {service1Id, service3Id},
s.app2: {service1Id, service2Id},
s.app1: {service1Id},
s.app2: {service2Id},
})

// Delegate app 1 to gateway 1 and 3 and app 2 to gateways 1 and 2.
Expand Down Expand Up @@ -299,7 +297,6 @@ func (s *appTransferTestSuite) TestMultipleSourceToSameNonexistentDestinationMer
expectedApp3ServiceIds := []string{
service1Id,
service2Id,
service3Id,
}
for _, serviceId := range expectedApp3ServiceIds {
require.Contains(s.T(),
Expand Down Expand Up @@ -477,11 +474,15 @@ func (s *appTransferTestSuite) shouldObserveTransferEndEvent(
return false
}

eventSrcAddr, hasSrcAddr := events.GetAttributeValue(event, "source_address")
_, hasSrcAddr := events.GetAttributeValue(event, "source_address")
require.True(s.T(), hasSrcAddr)

return eventSrcAddr == expectedDstApp.GetAddress()
eventDstAddr, hasDstAddr := events.GetAttributeValue(event, "destination_address")
require.True(s.T(), hasDstAddr)

return eventDstAddr == expectedDstApp.GetAddress()
})

require.NotNil(s.T(), targetTransferEndEvent)

evtSrcAddr, hasSrcAddrAttr := events.GetAttributeValue(targetTransferEndEvent, "source_address")
Expand Down
2 changes: 0 additions & 2 deletions testutil/integration/suites/application.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build integration

package suites

import (
Expand Down
2 changes: 0 additions & 2 deletions testutil/integration/suites/gateway.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build integration

package suites

import (
Expand Down

0 comments on commit 78c843a

Please sign in to comment.