Skip to content

Commit d0eedb0

Browse files
Julien Duchesneadnxn
Julien Duchesne
authored andcommitted
Fix failing windows tests
1 parent db98171 commit d0eedb0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

agent/api/task/task_windows_test.go

+6-4
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,10 @@ func TestCPUPercentBasedOnUnboundedEnabled(t *testing.T) {
259259

260260
func TestWindowsMemoryReservationOption(t *testing.T) {
261261
// Testing sending a task to windows overriding MemoryReservation value
262-
rawHostConfigInput := docker.HostConfig{
263-
MemoryReservation: nonZeroMemoryReservationValue,
262+
rawHostConfigInput := dockercontainer.HostConfig{
263+
Resources: dockercontainer.Resources{
264+
MemoryReservation: nonZeroMemoryReservationValue,
265+
},
264266
}
265267

266268
rawHostConfig, err := json.Marshal(&rawHostConfigInput)
@@ -272,10 +274,10 @@ func TestWindowsMemoryReservationOption(t *testing.T) {
272274
Arn: "arn:aws:ecs:us-east-1:012345678910:task/c09f0188-7f87-4b0f-bfc3-16296622b6fe",
273275
Family: "myFamily",
274276
Version: "1",
275-
Containers: []*Container{
277+
Containers: []*apicontainer.Container{
276278
{
277279
Name: "c1",
278-
DockerConfig: DockerConfig{
280+
DockerConfig: apicontainer.DockerConfig{
279281
HostConfig: strptr(string(rawHostConfig)),
280282
},
281283
},

0 commit comments

Comments
 (0)