mirror of
https://github.com/docker/docs.git
synced 2026-03-31 00:08:55 +07:00
need int64 cast to prevent overflow on the 32-bit architecture
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
This commit is contained in:
@@ -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, "")
|
||||
|
||||
Reference in New Issue
Block a user