Skip to content

Commit dc7b006

Browse files
Fix parse_windows_test formatting
1 parent 9eb3c07 commit dc7b006

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

agent/config/parse_windows_test.go

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,11 @@ import (
2020
"os"
2121
"testing"
2222

23-
mock_dependencies "github.com/aws/amazon-ecs-agent/agent/statemanager/dependencies/mocks"
24-
2523
"github.com/golang/mock/gomock"
2624
"github.com/stretchr/testify/assert"
27-
"golang.org/x/sys/windows"
28-
"golang.org/x/sys/windows/registry"
29-
)
30-
31-
func fakeWindowsGetVersionFunc(buildNumber int) func() *windows.OsVersionInfoEx {
32-
return func() *windows.OsVersionInfoEx {
33-
return &windows.OsVersionInfoEx{BuildNumber: uint32(buildNumber)}
34-
}
35-
}
3625

37-
func getMockWindowsRegistryKey(ctrl *gomock.Controller) *mock_dependencies.MockRegistryKey {
38-
mockWinRegistry := mock_dependencies.NewMockWindowsRegistry(ctrl)
39-
mockKey := mock_dependencies.NewMockRegistryKey(ctrl)
40-
41-
winRegistry = mockWinRegistry
42-
mockWinRegistry.EXPECT().OpenKey(ecsWinRegistryRootKey, ecsWinRegistryRootPath, gomock.Any()).Return(mockKey, nil)
43-
44-
return mockKey
45-
}
26+
mock_dependencies "github.com/aws/amazon-ecs-agent/agent/statemanager/dependencies/mocks"
27+
)
4628

4729
func TestParseGMSACapability(t *testing.T) {
4830
os.Setenv("ECS_GMSA_SUPPORTED", "False")

0 commit comments

Comments
 (0)