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
3dddd34d
Unverified
Commit
3dddd34d
authored
Oct 11, 2016
by
Tim St. Clair
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix race condition in test with git server startup
parent
ead65fc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
empty_dir_wrapper.go
test/e2e/empty_dir_wrapper.go
+2
-14
No files found.
test/e2e/empty_dir_wrapper.go
View file @
3dddd34d
...
...
@@ -120,14 +120,7 @@ var _ = framework.KubeDescribe("EmptyDir wrapper volumes", func() {
},
},
}
pod
,
err
=
f
.
Client
.
Pods
(
f
.
Namespace
.
Name
)
.
Create
(
pod
)
if
err
!=
nil
{
framework
.
Failf
(
"unable to create pod %v: %v"
,
pod
.
Name
,
err
)
}
err
=
f
.
WaitForPodRunning
(
pod
.
Name
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
(),
"Failed waiting for pod %s to enter running state"
,
pod
.
Name
)
pod
=
f
.
PodClient
()
.
CreateSync
(
pod
)
defer
func
()
{
By
(
"Cleaning up the secret"
)
...
...
@@ -139,8 +132,6 @@ var _ = framework.KubeDescribe("EmptyDir wrapper volumes", func() {
framework
.
Failf
(
"unable to delete git vol pod %v: %v"
,
pod
.
Name
,
err
)
}
}()
framework
.
ExpectNoError
(
framework
.
WaitForPodRunningInNamespace
(
f
.
Client
,
pod
))
})
// The following two tests check for the problem fixed in #29641.
...
...
@@ -204,10 +195,7 @@ func createGitServer(f *framework.Framework) (gitURL string, gitRepo string, cle
},
},
}
if
gitServerPod
,
err
=
f
.
Client
.
Pods
(
f
.
Namespace
.
Name
)
.
Create
(
gitServerPod
);
err
!=
nil
{
framework
.
Failf
(
"unable to create test git server pod %s: %v"
,
gitServerPod
.
Name
,
err
)
}
f
.
PodClient
()
.
CreateSync
(
gitServerPod
)
// Portal IP and port
httpPort
:=
2345
...
...
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