Remove unused expectedRV in store_test TestGet

expectedRV is defined in tests struct  but not set in test cases, removing the unnecessary checking
This commit is contained in:
Wenjia 2021-01-21 11:27:57 -08:00 committed by GitHub
parent 44f8fcfe94
commit f8f36c6727
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)
}