Merge pull request #98273 from wenjiaswe/patch-2

Remove unused expectedRV in store_test TestGet
This commit is contained in:
Kubernetes Prow Robot 2021-01-23 06:39:39 -08:00 committed by GitHub
commit 308aa1a87a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,7 +226,6 @@ func TestGet(t *testing.T) {
expectRVTooLarge bool
expectedOut *example.Pod
rv string
expectedRV string
}{{ // test get on existing item
name: "get existing",
key: key,
@ -287,11 +286,6 @@ func TestGet(t *testing.T) {
}
return
}
if tt.expectedRV != "" {
if tt.expectedRV != out.ResourceVersion {
t.Errorf("expecting resource version want=%s, got=%s", tt.expectedRV, out.ResourceVersion)
}
}
if err != nil {
t.Fatalf("Get failed: %v", err)
}