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) {
},
},
{
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{
createAlloc(allocIDs[0], highPrioJob, &structs.Resources{
CPU: 1200,
......@@ -333,7 +333,7 @@ func TestPreemption(t *testing.T) {
},
},
}),
createAlloc(allocIDs[1], lowPrioJob, &structs.Resources{
createAlloc(allocIDs[1], highPrioJob, &structs.Resources{
CPU: 200,
MemoryMB: 256,
DiskMB: 4 * 1024,
......@@ -405,7 +405,7 @@ func TestPreemption(t *testing.T) {
},
},
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