Skip to content

Commit

Permalink
fix: update e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryTong65 committed Mar 28, 2024
1 parent 7cc0777 commit 08d95d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:
- develop

env:
GreenfieldTag: d97b1596fe1824f1deedaa798a9d741ecb1fbef7
GreenfieldStorageProviderTag: 3f1ffe22d70a50bba0504f13e0867dd4e9e641c2
GreenfieldTag: master
GreenfieldStorageProviderTag: master
GOPRIVATE: github.com/bnb-chain
GH_ACCESS_TOKEN: ${{ secrets.GH_TOKEN }}
MYSQL_USER: root
Expand Down
12 changes: 2 additions & 10 deletions e2e/e2e_storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,12 @@ func (s *StorageTestSuite) SetupSuite() {
spList, err := s.Client.ListStorageProviders(s.ClientContext, false)
s.Require().NoError(err)
for _, sp := range spList {
if sp.Endpoint != "https://sp0.greenfield.io" && sp.Id == 1 {
families, _ := s.Client.QuerySpAvailableGlobalVirtualGroupFamilies(s.ClientContext, sp.Id)
if sp.Endpoint != "https://sp0.greenfield.io" && len(families) > 0 {
s.PrimarySP = sp
break
}
}
//wait for sp to create
var families []uint32
for i := 0; i < 100; i++ {
families, _ = s.Client.QuerySpAvailableGlobalVirtualGroupFamilies(s.ClientContext, s.PrimarySP.Id)
if len(families) > 0 {
break
}
time.Sleep(3 * time.Second)
}
}

func TestStorageTestSuite(t *testing.T) {
Expand Down

0 comments on commit 08d95d6

Please sign in to comment.