Skip to content

Commit

Permalink
Merge pull request #26 from turbonomic/master
Browse files Browse the repository at this point in the history
Resizable change
  • Loading branch information
DongyiYang authored Jun 5, 2017
2 parents 37e8813 + a363a8c commit 65de1be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/builder/commodity_dto_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (cb *CommodityDTOBuilder) Create() (*proto.CommodityDTO, error) {
Limit: cb.limit,
Peak: cb.peak,
Active: cb.active,
Resizable: cb.active,
Resizable: cb.resizable,
DisplayName: cb.displayName,
Thin: cb.thin,
ComputedUsed: cb.computedUsed,
Expand Down
5 changes: 4 additions & 1 deletion pkg/builder/commodity_dto_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ func TestCommodityDTOBuilder_Resizable(t *testing.T) {
resizable: mathrand.Int31n(2) == 1,
},
{
resizable: mathrand.Int31n(2) == 1,
resizable: true,
},
{
resizable: false,
},
}

Expand Down

0 comments on commit 65de1be

Please sign in to comment.