mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +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
|
expectRVTooLarge bool
|
||||||
expectedOut *example.Pod
|
expectedOut *example.Pod
|
||||||
rv string
|
rv string
|
||||||
expectedRV string
|
|
||||||
}{{ // test get on existing item
|
}{{ // test get on existing item
|
||||||
name: "get existing",
|
name: "get existing",
|
||||||
key: key,
|
key: key,
|
||||||
@ -287,11 +286,6 @@ func TestGet(t *testing.T) {
|
|||||||
}
|
}
|
||||||
return
|
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 {
|
if err != nil {
|
||||||
t.Fatalf("Get failed: %v", err)
|
t.Fatalf("Get failed: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user