Skip to content

Commit

Permalink
fix: add wait
Browse files Browse the repository at this point in the history
  • Loading branch information
acha-bill committed Dec 14, 2024
1 parent c0352ee commit 532dd27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/check/feed/feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (c *Check) regular(ctx context.Context, cluster orchestration.Cluster, o Op

// make updates
for i := 0; i < o.NUpdates; i++ {
time.Sleep(2 * time.Second)
time.Sleep(3 * time.Second)
data := fmt.Sprintf("update-%d", i)
fName := fmt.Sprintf("file-%d", i)
file := bee.NewBufferFile(fName, bytes.NewBuffer([]byte(data)))
Expand All @@ -140,9 +140,10 @@ func (c *Check) regular(ctx context.Context, cluster orchestration.Cluster, o Op
c.logger.Infof("soc reference: %s", socRes.Reference)
c.logger.Infof("wrapped reference: %s", file.Address())
}
time.Sleep(2 * time.Second)
time.Sleep(5 * time.Second)

// fetch update
c.logger.Infof("fetching feed update")
update, err := client.FindFeedUpdate(ctx, signer, topic, nil)
if err != nil {
return err
Expand Down

0 comments on commit 532dd27

Please sign in to comment.