Address review comments
This commit is contained in:
parent
430ff507f0
commit
5eed4d9667
19 changed files with 125 additions and 139 deletions
|
|
@ -142,8 +142,8 @@ func TestAllIterators(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestAndIteratorErr(t *testing.T) {
|
||||
retErr := errors.New("unique")
|
||||
allErr := newTestIterator(false, retErr)
|
||||
wantErr := errors.New("unique")
|
||||
allErr := newTestIterator(false, wantErr)
|
||||
|
||||
and := NewAnd()
|
||||
and.AddSubIterator(allErr)
|
||||
|
|
@ -152,7 +152,7 @@ func TestAndIteratorErr(t *testing.T) {
|
|||
if and.Next() != false {
|
||||
t.Errorf("And iterator did not pass through initial 'false'")
|
||||
}
|
||||
if and.Err() != retErr {
|
||||
if and.Err() != wantErr {
|
||||
t.Errorf("And iterator did not pass through underlying Err")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue