Skip to content

Commit bbb9714

Browse files
committed
Add test description
1 parent 9207656 commit bbb9714

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

agent/engine/docker_task_engine_linux_test.go

+9
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,15 @@ func TestTaskWithSteadyStateResourcesProvisioned(t *testing.T) {
821821
waitForStopEvents(t, taskEngine.StateChangeEvents(), true, false)
822822
}
823823

824+
// Tests a happy case scenario for an AWSVPC task.
825+
//
826+
// This test also verifies that
827+
// any DockerClient calls that interact with an image repository (PullContainerManifest
828+
// and PullContainer, currently) happen after the pause container has reached
829+
// ContainerResourcesProvisioned (RUNNING) state.
830+
//
831+
// If you are updating this test then make sure that you call assertPauseContainerIsRunning()
832+
// in any dockerClient expected calls that are supposed to interact with an image repository.
824833
func TestPauseContainerHappyPath(t *testing.T) {
825834
ctx, cancel := context.WithCancel(context.TODO())
826835
defer cancel()

0 commit comments

Comments
 (0)