Skip to content

Commit

Permalink
pkg/kubelet/nodeshutdown/systemd: fix for dbus 5.0.4
Browse files Browse the repository at this point in the history
dbus 5.0.4 adds StoreProperty method which needs to be implemented for
the mock.

Fixes the errors like

> pkg/kubelet/nodeshutdown/systemd/inhibit_linux_test.go:88:9: cannot use f.fakeDBusObject (variable of type *fakeDBusObject) as dbus.BusObject value in return statement: missing method StoreProperty

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed May 20, 2021
1 parent dc12c60 commit 578d22a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/kubelet/nodeshutdown/systemd/inhibit_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func (obj *fakeDBusObject) SetProperty(p string, v interface{}) error {
return nil
}

func (obj *fakeDBusObject) StoreProperty(p string, v interface{}) error {
return nil
}

func (obj *fakeDBusObject) Destination() string {
return ""
}
Expand Down

0 comments on commit 578d22a

Please sign in to comment.