Merge pull request #211 from chanwit/int-overflow

Cleanup: need int64 cast to prevent overflow on the 32-bit architecture
This commit is contained in:
Andrea Luzzardi 2014-12-30 14:31:07 +01:00
commit 27fd017286
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ func TestPlaceContainerMemory(t *testing.T) {
assert.NoError(t, err)
assert.NoError(t, node2.AddContainer(createContainer("c2", config)))
assert.Equal(t, node2.ReservedMemory(), 2*1024*1024*1024)
assert.Equal(t, node2.ReservedMemory(), int64(2*1024*1024*1024))
// check that both containers ended on the same node
assert.Equal(t, node1.ID, node2.ID, "")