mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
commit
2b5f939b94
6
pkg/client/cache/undelta_store_test.go
vendored
6
pkg/client/cache/undelta_store_test.go
vendored
@ -30,7 +30,6 @@ var (
|
||||
o1 interface{} = t{1}
|
||||
o2 interface{} = t{2}
|
||||
l1 []interface{} = []interface{}{t{1}}
|
||||
l12 []interface{} = []interface{}{t{1}, t{2}}
|
||||
)
|
||||
|
||||
func TestUpdateCallsPush(t *testing.T) {
|
||||
@ -99,13 +98,12 @@ func TestReplaceCallsPush(t *testing.T) {
|
||||
|
||||
m := make(map[string]interface{})
|
||||
m["1"] = o1
|
||||
m["2"] = o2
|
||||
|
||||
u.Replace(m)
|
||||
if callcount != 1 {
|
||||
t.Errorf("Expected 2 calls, got %d", callcount)
|
||||
t.Errorf("Expected 1 calls, got %d", callcount)
|
||||
}
|
||||
expected := l12
|
||||
expected := l1
|
||||
if !reflect.DeepEqual(expected, got) {
|
||||
t.Errorf("Expected %#v, Got %#v", expected, got)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user