Skip to content

Commit

Permalink
dbustest: fix stale comment references
Browse files Browse the repository at this point in the history
The two mock helpers have a bit longer names.

Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
  • Loading branch information
zyga committed Sep 29, 2020
1 parent ff17d06 commit ee0ed9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dbusutil/dbusutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ func isSessionBusLikelyPresent() bool {
// to use the session bus, we expect session bus daemon to have been started and
// managed by the corresponding user session manager.
//
// This function is mockable by either MockConnections or MockSessionBus.
// This function is mockable by either MockConnections or
// MockOnlySessionBusAvailable.
var SessionBus = func() (*dbus.Conn, error) {
if isSessionBusLikelyPresent() {
return dbus.SessionBus()
Expand All @@ -70,7 +71,8 @@ var SessionBus = func() (*dbus.Conn, error) {

// SystemBus is like dbus.SystemBus and is provided for completeness.
//
// This function is mockable by either MockConnections or MockSystemBus.
// This function is mockable by either MockConnections or
// MockOnlySystemBusAvailable.
var SystemBus = func() (*dbus.Conn, error) {
return dbus.SystemBus()
}
Expand Down

0 comments on commit ee0ed9b

Please sign in to comment.