Skip to content

Commit

Permalink
resources: update unit test for config cgroup root
Browse files Browse the repository at this point in the history
  • Loading branch information
adnxn committed Jan 23, 2018
1 parent 47a8220 commit 0299a3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions agent/resources/resources_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"testing"

"github.com/aws/amazon-ecs-agent/agent/api"
"github.com/aws/amazon-ecs-agent/agent/config"
"github.com/aws/amazon-ecs-agent/agent/engine/testdata"
"github.com/aws/amazon-ecs-agent/agent/resources/cgroup/factory/mock"
"github.com/aws/amazon-ecs-agent/agent/resources/cgroup/mock_control"
Expand Down Expand Up @@ -100,7 +101,9 @@ func TestSetupHappyPath(t *testing.T) {
mockIO.EXPECT().WriteFile(cgroupPath, gomock.Any(), gomock.Any()).Return(nil),
)

cfg := config.DefaultConfig()
resource := newResources(mockControl, mockIO)
resource.ApplyConfigDependencies(&cfg)
assert.NoError(t, resource.Setup(task))
}

Expand Down

0 comments on commit 0299a3a

Please sign in to comment.