Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
63182318
Commit
63182318
authored
May 11, 2015
by
Jerzy Szczepkowski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8037 from shawnps/patch-11
Add missing Errorf formatting directives
parents
36ab4b4c
5d5c660f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scheduler_test.go
test/integration/scheduler_test.go
+2
-2
No files found.
test/integration/scheduler_test.go
View file @
63182318
...
@@ -250,7 +250,7 @@ func DoTestUnschedulableNodes(t *testing.T, restClient *client.Client, nodeStore
...
@@ -250,7 +250,7 @@ func DoTestUnschedulableNodes(t *testing.T, restClient *client.Client, nodeStore
t
.
Errorf
(
"Pod scheduled successfully on unschedulable nodes"
)
t
.
Errorf
(
"Pod scheduled successfully on unschedulable nodes"
)
}
}
if
err
!=
wait
.
ErrWaitTimeout
{
if
err
!=
wait
.
ErrWaitTimeout
{
t
.
Errorf
(
"Test %d: failed while trying to confirm the pod does not get scheduled on the node: %v"
,
err
)
t
.
Errorf
(
"Test %d: failed while trying to confirm the pod does not get scheduled on the node: %v"
,
i
,
err
)
}
else
{
}
else
{
t
.
Logf
(
"Test %d: Pod did not get scheduled on an unschedulable node"
,
i
)
t
.
Logf
(
"Test %d: Pod did not get scheduled on an unschedulable node"
,
i
)
}
}
...
@@ -265,7 +265,7 @@ func DoTestUnschedulableNodes(t *testing.T, restClient *client.Client, nodeStore
...
@@ -265,7 +265,7 @@ func DoTestUnschedulableNodes(t *testing.T, restClient *client.Client, nodeStore
// Wait until the pod is scheduled.
// Wait until the pod is scheduled.
err
=
wait
.
Poll
(
time
.
Second
,
time
.
Second
*
10
,
podScheduled
(
restClient
,
myPod
.
Namespace
,
myPod
.
Name
))
err
=
wait
.
Poll
(
time
.
Second
,
time
.
Second
*
10
,
podScheduled
(
restClient
,
myPod
.
Namespace
,
myPod
.
Name
))
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Errorf
(
"Test %d: failed to schedule a pod: %v"
,
err
)
t
.
Errorf
(
"Test %d: failed to schedule a pod: %v"
,
i
,
err
)
}
else
{
}
else
{
t
.
Logf
(
"Test %d: Pod got scheduled on a schedulable node"
,
i
)
t
.
Logf
(
"Test %d: Pod got scheduled on a schedulable node"
,
i
)
}
}
...
...
Write
Preview
Markdown
is supported
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