mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Use correct namespace in unit tests that use fake clientset
Fake clientset no longer needs to be prepopulated with records: keeping them in leads to the name conflict on creates. Also, since fake clientset now respects namespaces, we need to correctly populate them.
This commit is contained in:
@@ -578,6 +578,9 @@ func TestDescribeEvents(t *testing.T) {
|
||||
events := &api.EventList{
|
||||
Items: []api.Event{
|
||||
{
|
||||
ObjectMeta: api.ObjectMeta{
|
||||
Namespace: "foo",
|
||||
},
|
||||
Source: api.EventSource{Component: "kubelet"},
|
||||
Message: "Item 1",
|
||||
FirstTimestamp: unversioned.NewTime(time.Date(2014, time.January, 15, 0, 0, 0, 0, time.UTC)),
|
||||
|
||||
Reference in New Issue
Block a user