We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b55573 commit b087b67Copy full SHA for b087b67
1 file changed
go/sync2/fake_consolidator.go
@@ -53,10 +53,10 @@ type FakePendingResult struct {
53
WaitCalls int
54
// AddWaiterCounterCalls can be used to inspect AddWaiterCounter calls.
55
AddWaiterCounterCalls []int64
56
- // WaiterCount simulates the current waiter count
57
WaiterCount int64
58
- err error
59
- result *sqltypes.Result
+ PerResultWaiterCount int64
+ err error
+ result *sqltypes.Result
60
}
61
62
var (
@@ -118,7 +118,7 @@ func (fr *FakePendingResult) Wait() {
118
119
120
func (fr *FakePendingResult) HasWaiters() bool {
121
- return fr.WaiterCount > 0
+ return fr.PerResultWaiterCount > 0
122
123
124
// AddWaiterCounter records the call and simulates waiter count changes.
0 commit comments