Unverified Commit c49a3e20 authored by Preetha Appan's avatar Preetha Appan
Browse files

Fix test setup

parent 1380acbf
Showing with 3 additions and 3 deletions
+3 -3
...@@ -318,7 +318,7 @@ func TestPreemption(t *testing.T) { ...@@ -318,7 +318,7 @@ func TestPreemption(t *testing.T) {
}, },
}, },
{ {
desc: "preempt only from device that has allocation with used reserved port", desc: "preempt only from device that has allocation with unused reserved port",
currentAllocations: []*structs.Allocation{ currentAllocations: []*structs.Allocation{
createAlloc(allocIDs[0], highPrioJob, &structs.Resources{ createAlloc(allocIDs[0], highPrioJob, &structs.Resources{
CPU: 1200, CPU: 1200,
...@@ -333,7 +333,7 @@ func TestPreemption(t *testing.T) { ...@@ -333,7 +333,7 @@ func TestPreemption(t *testing.T) {
}, },
}, },
}), }),
createAlloc(allocIDs[1], lowPrioJob, &structs.Resources{ createAlloc(allocIDs[1], highPrioJob, &structs.Resources{
CPU: 200, CPU: 200,
MemoryMB: 256, MemoryMB: 256,
DiskMB: 4 * 1024, DiskMB: 4 * 1024,
...@@ -405,7 +405,7 @@ func TestPreemption(t *testing.T) { ...@@ -405,7 +405,7 @@ func TestPreemption(t *testing.T) {
}, },
}, },
preemptedAllocIDs: map[string]struct{}{ preemptedAllocIDs: map[string]struct{}{
allocIDs[1]: {}, allocIDs[2]: {},
}, },
}, },
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment