Skip to content

Commit 6c348c5

Browse files
committed
fix test
Signed-off-by: Hagar Meir <[email protected]>
1 parent 20b4226 commit 6c348c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/bft/controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (c *Controller) startNewView(newViewNumber uint64, newProposalSequence uint
184184
c.viewAbortChan <- struct{}{}
185185
}()
186186
if c.iAmTheLeader() {
187-
c.Logger.Debugf("Starting leader thread")
187+
c.Logger.Debugf("Starting leader thread in view %d", atomic.LoadUint64(&c.currViewNumber))
188188
c.stopWG.Add(1)
189189
go func() {
190190
defer c.stopWG.Done()

internal/bft/controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func TestLeaderPropose(t *testing.T) {
162162
commit3Get := commit3.GetCommit()
163163
commit3Get.Signature.Signer = 3
164164
appWG.Add(1) // deliver
165-
commWG.Add(1) // next proposal
165+
commWG.Add(2) // next proposal
166166
controller.ProcessMessages(3, commit3)
167167
appWG.Wait()
168168
commWG.Wait()

0 commit comments

Comments
 (0)