Skip to content

Commit

Permalink
Merge pull request #635 from leonwanghui/development
Browse files Browse the repository at this point in the history
Run go fmt to update the code
  • Loading branch information
leonwanghui authored Mar 25, 2019
2 parents f20659f + 1cb69aa commit 933a400
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/controller/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ func TestCreateVolumeGroup(t *testing.T) {
Id: "3769855c-a102-11e7-b772-17b880d2f555",
Name: "sample-group-01",
Description: "This is the first sample group for testing",
AddVolumes: []string{"bd5b12a8-a101-11e7-941e-d77981b584d8"},
AddVolumes: []string{"bd5b12a8-a101-11e7-941e-d77981b584d8"},
Context: c.NewAdminContext().ToJson(),
}
var vg = &SampleVolumeGroups[0]
Expand All @@ -567,9 +567,9 @@ func TestCreateVolumeGroup(t *testing.T) {
mockClient.On("GetVolumeGroup", c.NewAdminContext(), req.Id).Return(vg, nil)
mockClient.On("GetDock", c.NewAdminContext(), "b7602e18-771e-11e7-8f38-dbd6d291f4e0").Return(&SampleDocks[0], nil)
mockClient.On("UpdateVolume", c.NewAdminContext(), &model.VolumeSpec{
BaseModel: &model.BaseModel{Id: req.AddVolumes[0]},
GroupId: req.Id,
}).Return(&SampleVolumes[0], nil)
BaseModel: &model.BaseModel{Id: req.AddVolumes[0]},
GroupId: req.Id,
}).Return(&SampleVolumes[0], nil)
mockClient.On("UpdateStatus", c.NewAdminContext(), vg, model.VolumeGroupAvailable).Return(nil)
db.C = mockClient

Expand Down

0 comments on commit 933a400

Please sign in to comment.