Refactor and reorder validation to avoid reporting multiple corelated failures
It doesn't make sense to report watch failure if key value operations are not linearizable. Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
This commit is contained in:
@ -211,7 +211,11 @@ func TestValidateWatch(t *testing.T) {
|
||||
}
|
||||
for _, tc := range tcs {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
validateWatch(t, Config{ExpectRevisionUnique: true}, tc.reports)
|
||||
eventHistory, err := mergeWatchEventHistory(tc.reports)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
validateWatch(t, zaptest.NewLogger(t), Config{ExpectRevisionUnique: true}, tc.reports, eventHistory)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user