Skip to content

Commit

Permalink
fix: fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Sep 11, 2024
1 parent 33d0f1b commit d7f2de2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projection/actor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ func TestActor(t *testing.T) {
err = actorSystem.Start(ctx)
require.NoError(t, err)

time.Sleep(time.Second)

projectionName := "db-writer"
persistenceID := uuid.NewString()
shardNumber := uint64(9)
Expand All @@ -85,6 +87,8 @@ func TestActor(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, pid)

time.Sleep(time.Second)

// start the projection
require.NoError(t, actors.Tell(ctx, pid, Start))

Expand Down

0 comments on commit d7f2de2

Please sign in to comment.