1
0
mirror of https://github.com/docker/docs.git synced 2026-10-31 10:34:26 +03:00

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

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, "")