Here are the steps I took to try (and fail) to reproduce:
-------------- git up master godeps -u dependencies.tsv go install ./... juju bootstrap --upload-tools test-a lxd juju create-model model-a go run /tmp/test-lp1560201.go --------------
(test-lp1560201.go is attached)
The critical part of the attached code is the following section:
-------------- func (c *testCommand) Run(ctx *cmd.Context) error { client, err := c.NewAPIClient() if err != nil { return err } defer client.Close()
watcher, err := client.WatchAll() if err != nil { return err } if watcher == nil { panic("???") } fmt.Fprintln(ctx.Stdout, "did not block") return nil } --------------
It did not block.
Here are the steps I took to try (and fail) to reproduce:
-------------- lp1560201. go
git up master
godeps -u dependencies.tsv
go install ./...
juju bootstrap --upload-tools test-a lxd
juju create-model model-a
go run /tmp/test-
--------------
(test-lp1560201.go is attached)
The critical part of the attached code is the following section:
--------------
return err
func (c *testCommand) Run(ctx *cmd.Context) error {
client, err := c.NewAPIClient()
if err != nil {
}
defer client.Close()
watcher, err := client.WatchAll()
return err
panic( "???")
fmt.Fprintln( ctx.Stdout, "did not block")
if err != nil {
}
if watcher == nil {
}
return nil
}
--------------
It did not block.