From 6ce6de9aed5201293c006697dace19a0df624ab8 Mon Sep 17 00:00:00 2001 From: forcodedancing Date: Thu, 1 Jun 2023 12:14:49 -0600 Subject: [PATCH] fix test issue --- e2e/tests/storage_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/e2e/tests/storage_test.go b/e2e/tests/storage_test.go index da1fb8c6a..12abf05ee 100644 --- a/e2e/tests/storage_test.go +++ b/e2e/tests/storage_test.go @@ -1068,6 +1068,7 @@ func (s *StorageTestSuite) TestDiscontinueObject_Normal() { } } + time.Sleep(200 * time.Millisecond) events := make([]storagetypes.EventDeleteObject, 0) for heightBefore <= heightAfter { blockRes, err := s.TmClient.TmClient.BlockResults(context.Background(), &heightBefore) @@ -1107,6 +1108,7 @@ func (s *StorageTestSuite) TestDiscontinueObject_Normal() { } } + time.Sleep(200 * time.Millisecond) events = make([]storagetypes.EventDeleteObject, 0) for heightBefore <= heightAfter { blockRes, err := s.TmClient.TmClient.BlockResults(context.Background(), &heightBefore) @@ -1140,7 +1142,7 @@ func (s *StorageTestSuite) TestDiscontinueObject_UserDeleted() { heightBefore := txRes.Height heightAfter := int64(0) for { - time.Sleep(500 * time.Millisecond) + time.Sleep(200 * time.Millisecond) statusRes, err := s.TmClient.TmClient.Status(context.Background()) s.Require().NoError(err) blockTime := statusRes.SyncInfo.LatestBlockTime.Unix() @@ -1155,6 +1157,7 @@ func (s *StorageTestSuite) TestDiscontinueObject_UserDeleted() { } } + time.Sleep(200 * time.Millisecond) events := make([]storagetypes.EventDeleteObject, 0) for heightBefore <= heightAfter { blockRes, err := s.TmClient.TmClient.BlockResults(context.Background(), &heightBefore) @@ -1211,6 +1214,7 @@ func (s *StorageTestSuite) TestDiscontinueBucket_Normal() { } } + time.Sleep(200 * time.Millisecond) events := make([]storagetypes.EventDeleteBucket, 0) for heightBefore <= heightAfter { blockRes, err := s.TmClient.TmClient.BlockResults(context.Background(), &heightBefore) @@ -1250,6 +1254,7 @@ func (s *StorageTestSuite) TestDiscontinueBucket_Normal() { } } + time.Sleep(200 * time.Millisecond) events = make([]storagetypes.EventDeleteBucket, 0) for heightBefore <= heightAfter { blockRes, err := s.TmClient.TmClient.BlockResults(context.Background(), &heightBefore) @@ -1286,7 +1291,7 @@ func (s *StorageTestSuite) TestDiscontinueBucket_UserDeleted() { heightBefore := txRes.Height heightAfter := int64(0) for { - time.Sleep(500 * time.Millisecond) + time.Sleep(200 * time.Millisecond) statusRes, err := s.TmClient.TmClient.Status(context.Background()) s.Require().NoError(err) blockTime := statusRes.SyncInfo.LatestBlockTime.Unix() @@ -1301,6 +1306,7 @@ func (s *StorageTestSuite) TestDiscontinueBucket_UserDeleted() { } } + time.Sleep(200 * time.Millisecond) events := make([]storagetypes.EventDeleteBucket, 0) for heightBefore <= heightAfter { blockRes, err := s.TmClient.TmClient.BlockResults(context.Background(), &heightBefore)