Comment 1 for bug 1560201

Revision history for this message
Eric Snow (ericsnowcurrently) wrote :

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.