Skip to content

Commit

Permalink
WIP.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurschreiber committed Oct 21, 2024
1 parent 9e3bc1c commit 113e674
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go/logic/coordinator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ func TestCoordinator(t *testing.T) {
coord.applier = applier
coord.InitializeWorkers(8)

streamCtx, cancelStreaming := context.WithCancel(context.Background())
canStopStreaming := func() bool {
return false
return streamCtx.Err() != nil
}
go func() {
err = coord.StartStreaming(canStopStreaming)
Expand All @@ -153,6 +154,7 @@ func TestCoordinator(t *testing.T) {

for {
if ctx.Err() != nil {
cancelStreaming()
break
}

Expand Down

0 comments on commit 113e674

Please sign in to comment.