Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
  • Loading branch information
NikitaSkrynnik committed Jun 6, 2022
1 parent 7903d79 commit 27febb1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/registry/common/heal/find_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func TestHealClient_FindTest(t *testing.T) {
}).
Build()

log.FromContext(ctx).Info("MY_INFO domain.Build Completed")
// 1. Create NS, NSE find clients
findCtx, findCancel := context.WithCancel(ctx)

Expand Down Expand Up @@ -133,12 +134,14 @@ func TestHealClient_FindTest(t *testing.T) {
findCancel()

require.Eventually(t, func() bool {
_, err := nsRespStream.Recv()
r, err := nsRespStream.Recv()
log.FromContext(ctx).Infof("MY_INFO Recv returned %v, error: %v", r, err)
return err != nil
}, time.Millisecond*500, time.Millisecond*50)

require.Eventually(t, func() bool {
_, err := nseRespStream.Recv()
r, err := nseRespStream.Recv()
log.FromContext(ctx).Infof("MY_INFO Recv returned %v, error: %v", r, err)
return err != nil
}, time.Millisecond*500, time.Millisecond*50)
}

0 comments on commit 27febb1

Please sign in to comment.