integration: Fix Parallel before setupTest
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
fa4deb02af
commit
24da5233dd
2 changed files with 4 additions and 3 deletions
|
@ -78,12 +78,12 @@ func TestStopContainerWithTimeout(t *testing.T) {
|
|||
// if the request is cancelled.
|
||||
// See issue https://github.com/moby/moby/issues/45731
|
||||
func TestStopContainerWithTimeoutCancel(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
ctx := setupTest(t)
|
||||
apiClient := testEnv.APIClient()
|
||||
t.Cleanup(func() { _ = apiClient.Close() })
|
||||
|
||||
t.Parallel()
|
||||
|
||||
id := container.Run(ctx, t, apiClient,
|
||||
container.WithCmd("sh", "-c", "trap 'echo received TERM' TERM; while true; do usleep 10; done"),
|
||||
)
|
||||
|
|
|
@ -111,9 +111,10 @@ func TestVolumesRemove(t *testing.T) {
|
|||
func TestVolumesRemoveSwarmEnabled(t *testing.T) {
|
||||
skip.If(t, testEnv.IsRemoteDaemon, "cannot run daemon when remote daemon")
|
||||
skip.If(t, testEnv.DaemonInfo.OSType == "windows", "TODO enable on windows")
|
||||
t.Parallel()
|
||||
ctx := setupTest(t)
|
||||
|
||||
t.Parallel()
|
||||
|
||||
// Spin up a new daemon, so that we can run this test in parallel (it's a slow test)
|
||||
d := daemon.New(t)
|
||||
d.StartAndSwarmInit(ctx, t)
|
||||
|
|
Loading…
Add table
Reference in a new issue