Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #61 from StrongMonkey/change-stupid-memory-fields
Browse files Browse the repository at this point in the history
change test case
  • Loading branch information
ibuildthecloud authored Oct 13, 2016
2 parents 5ae9c4c + b4808a0 commit e42e13e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/compute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (s *ComputeTestSuite) TestNewFields(c *check.C) {
fields["blkioWeight"] = 100
fields["cpuPeriod"] = 100000
fields["cpuQuota"] = 50000
fields["cpuSetMems"] = "0,1"
fields["cpuSetMems"] = "0"
fields["kernelMemory"] = 10000000
fields["memory"] = 10000000
fields["memorySwappiness"] = 50
Expand Down Expand Up @@ -131,7 +131,7 @@ func (s *ComputeTestSuite) TestNewFields(c *check.C) {
c.Assert(inspect.HostConfig.BlkioWeight, check.Equals, uint16(100))
c.Assert(inspect.HostConfig.CPUPeriod, check.Equals, int64(100000))
c.Assert(inspect.HostConfig.CPUQuota, check.Equals, int64(50000))
c.Assert(inspect.HostConfig.CpusetMems, check.Equals, "0,1")
c.Assert(inspect.HostConfig.CpusetMems, check.Equals, "0")
c.Assert(inspect.HostConfig.KernelMemory, check.Equals, int64(10000000))
c.Assert(inspect.HostConfig.Memory, check.Equals, int64(10000000))
c.Assert(*(inspect.HostConfig.MemorySwappiness), check.Equals, int64(50))
Expand Down

0 comments on commit e42e13e

Please sign in to comment.