fix(stf): fixes to make init genesis pass (#21088)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
This commit is contained in:
co-authored by
marbar3778
parent
2e0884564f
commit
b05bb2601e
@@ -15,7 +15,7 @@ type AsyncListenerOptions struct {
|
||||
BufferSize int
|
||||
|
||||
// DoneWaitGroup is an optional wait-group that listener goroutines will notify via Add(1) when they are started
|
||||
// and Done() after they are cancelled and completed.
|
||||
// and Done() after they are canceled and completed.
|
||||
DoneWaitGroup *sync.WaitGroup
|
||||
}
|
||||
|
||||
|
||||
@@ -119,6 +119,7 @@ func callCollector(i int, onCall func(string, int, Packet)) Listener {
|
||||
}
|
||||
|
||||
func checkExpectedCallOrder(t *testing.T, actual, expected []string) {
|
||||
t.Helper()
|
||||
if len(actual) != len(expected) {
|
||||
t.Fatalf("expected %d calls, got %d", len(expected), len(actual))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user