Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

daemon: allowing adding external http handlers #265

Merged
merged 10 commits into from
Aug 4, 2023
2 changes: 2 additions & 0 deletions internals/daemon/daemon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ func (s *daemonSuite) TestAddCommand(c *C) {
GuestOK: true,
GET: getCallback,
}

API = append(API, &command)
paul-rodriguez marked this conversation as resolved.
Show resolved Hide resolved
defer func() { API = API[:len(API)-1] }()
paul-rodriguez marked this conversation as resolved.
Show resolved Hide resolved

d := s.newDaemon(c)
d.Init()
Expand Down