Remove unused expectedRV in store_test TestGet
expectedRV is defined in tests struct but not set in test cases, removing the unnecessary checking Kubernetes-commit: f8f36c672776bb00b2d53c5d49e92b1bfb608516
This commit is contained in:
parent
864a7c9c18
commit
15c145e78b
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue