mirror of https://github.com/docker/docs.git
need int64 cast to prevent overflow on the 32-bit architecture
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
This commit is contained in:
parent
a58043d354
commit
869c57ccb1
|
@ -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, "")
|
||||
|
|
Loading…
Reference in New Issue