~themue/pyjuju/go-state-auth

« back to all changes in this revision

Viewing changes to environs/jujutest/livetests.go

state: wait for initialization before returning from Open.

Also remove Initialize from the set of State methods.

R=fwereade, TheMue, niemeyer
CC=
https://codereview.appspot.com/5853048

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
                c.Logf("open state")
72
72
                st, err := state.Open(info)
73
73
                c.Assert(err, IsNil)
74
 
 
75
 
                c.Logf("initialize state")
76
 
                err = st.Initialize()
77
 
                c.Assert(err, IsNil)
 
74
                st.Close()
78
75
        }
79
76
 
80
 
        // TODO uncomment when State has a close method
81
 
        // st.Close()
82
 
 
83
77
        c.Logf("destroy env")
84
78
        t.Destroy(c)
85
79