Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
c49a3e20
Unverified
Commit
c49a3e20
authored
6 years ago
by
Preetha Appan
Browse files
Options
Download
Email Patches
Plain Diff
Fix test setup
parent
1380acbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scheduler/preemption_test.go
+3
-3
scheduler/preemption_test.go
with
3 additions
and
3 deletions
+3
-3
scheduler/preemption_test.go
+
3
-
3
View file @
c49a3e20
...
@@ -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
un
used 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
],
low
PrioJob
,
&
structs
.
Resources
{
createAlloc
(
allocIDs
[
1
],
high
PrioJob
,
&
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
]
:
{},
},
},
},
},
{
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help