mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
fix iops related tests
This commit is contained in:
@@ -3253,6 +3253,12 @@ func TestTaskDiff(t *testing.T) {
|
||||
Old: "100",
|
||||
New: "200",
|
||||
},
|
||||
{
|
||||
Type: DiffTypeNone,
|
||||
Name: "IOPS",
|
||||
Old: "0",
|
||||
New: "0",
|
||||
},
|
||||
{
|
||||
Type: DiffTypeNone,
|
||||
Name: "MemoryMB",
|
||||
@@ -3574,6 +3580,12 @@ func TestTaskDiff(t *testing.T) {
|
||||
Old: "100",
|
||||
New: "100",
|
||||
},
|
||||
{
|
||||
Type: DiffTypeNone,
|
||||
Name: "IOPS",
|
||||
Old: "0",
|
||||
New: "0",
|
||||
},
|
||||
{
|
||||
Type: DiffTypeNone,
|
||||
Name: "MemoryMB",
|
||||
|
||||
@@ -210,6 +210,18 @@ func TestAllocsFit_TerminalAlloc_Old(t *testing.T) {
|
||||
CPU: 2000,
|
||||
MemoryMB: 2048,
|
||||
DiskMB: 10000,
|
||||
Networks: []*NetworkResource{
|
||||
{
|
||||
Device: "eth0",
|
||||
CIDR: "10.0.0.0/8",
|
||||
MBits: 100,
|
||||
},
|
||||
},
|
||||
},
|
||||
Reserved: &Resources{
|
||||
CPU: 1000,
|
||||
MemoryMB: 1024,
|
||||
DiskMB: 5000,
|
||||
Networks: []*NetworkResource{
|
||||
{
|
||||
Device: "eth0",
|
||||
|
||||
Reference in New Issue
Block a user