File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func (s *EventsSuite) TestEventsList() {
3232 s .Run ("events_list (with events)" , func () {
3333 client := kubernetes .NewForConfigOrDie (envTestRestConfig )
3434 for _ , ns := range []string {"default" , "ns-1" } {
35- _ , _ = client .CoreV1 ().Events (ns ).Create (s .T ().Context (), & v1.Event {
35+ _ , eventCreateErr : = client .CoreV1 ().Events (ns ).Create (s .T ().Context (), & v1.Event {
3636 ObjectMeta : metav1.ObjectMeta {
3737 Name : "an-event-in-" + ns ,
3838 },
@@ -45,6 +45,7 @@ func (s *EventsSuite) TestEventsList() {
4545 Type : "Normal" ,
4646 Message : "The event message" ,
4747 }, metav1.CreateOptions {})
48+ s .Require ().NoError (eventCreateErr , "failed to create event in namespace %s" , ns )
4849 }
4950 s .Run ("events_list()" , func () {
5051 toolResult , err := s .CallTool ("events_list" , map [string ]interface {}{})
You can’t perform that action at this time.
0 commit comments