Expose last sync resource version

This commit is contained in:
derekwaynecarr
2015-03-27 14:17:54 -04:00
parent c4cbc9bc46
commit 9df41301f0
2 changed files with 17 additions and 0 deletions

View File

@@ -112,6 +112,11 @@ func TestReflector_watchHandler(t *testing.T) {
if e, a := "32", resumeRV; e != a {
t.Errorf("expected %v, got %v", e, a)
}
// last sync resource version should be the last version synced with store
if e, a := "32", g.LastSyncResourceVersion(); e != a {
t.Errorf("expected %v, got %v", e, a)
}
}
func TestReflector_watchHandlerTimeout(t *testing.T) {