mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
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:
parent
44f8fcfe94
commit
f8f36c6727
@ -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
Block a user