File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,9 @@ func TestReturnExitCode1onError(t *testing.T) {
205205
206206func TestReturnExitCode3onErrorDuringPreCreate (t * testing.T ) {
207207 command := func (commandLine CommandLine , api libmachine.API ) error {
208- return mcnerror.ErrDuringPreCreate {errors .New ("foo is not bar" )}
208+ return mcnerror.ErrDuringPreCreate {
209+ Cause : errors .New ("foo is not bar" ),
210+ }
209211 }
210212
211213 exitCode := checkErrorCodeForCommand (command )
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ func NewNetstatProvisioner() provision.Provisioner {
6969
7070func TestStart (t * testing.T ) {
7171 provision .SetDetector (& provision.FakeDetector {
72- NewNetstatProvisioner (),
72+ Provisioner : NewNetstatProvisioner (),
7373 })
7474
7575 host := & Host {
Original file line number Diff line number Diff line change @@ -123,7 +123,9 @@ func (api *Client) Create(h *host.Host) error {
123123 log .Info ("Running pre-create checks..." )
124124
125125 if err := h .Driver .PreCreateCheck (); err != nil {
126- return mcnerror.ErrDuringPreCreate {err }
126+ return mcnerror.ErrDuringPreCreate {
127+ Cause : err ,
128+ }
127129 }
128130
129131 if err := api .Save (h ); err != nil {
You can’t perform that action at this time.
0 commit comments