diff --git a/packages/aws_common/test/config/file_location_test.dart b/packages/aws_common/test/config/file_location_test.dart index fca22046e2..1ad94173ae 100644 --- a/packages/aws_common/test/config/file_location_test.dart +++ b/packages/aws_common/test/config/file_location_test.dart @@ -14,7 +14,7 @@ void main() { r'User home is loaded from $HOME with highest priority on non-windows platforms.', () { overrideOperatingSystem( - const OperatingSystem('linux', ''), + OperatingSystem('linux', ''), () { overrideEnvironment( { @@ -42,7 +42,7 @@ void main() { r'User home is loaded from $HOME with highest priority on windows platforms.', () { overrideOperatingSystem( - const OperatingSystem('windows', ''), + OperatingSystem('windows', ''), () { overrideEnvironment( { @@ -70,7 +70,7 @@ void main() { r'User home is loaded from $USERPROFILE on windows platforms when $HOME is not set.', () { overrideOperatingSystem( - const OperatingSystem('windows', ''), + OperatingSystem('windows', ''), () { overrideEnvironment( { @@ -97,7 +97,7 @@ void main() { r'User home is loaded from $HOMEDRIVE$HOMEPATH on windows platforms when $HOME and $USERPROFILE are not set.', () { overrideOperatingSystem( - const OperatingSystem('windows', ''), + OperatingSystem('windows', ''), () { overrideEnvironment( { @@ -123,7 +123,7 @@ void main() { r'The default config location can be overridden by the user on non-windows platforms.', () { overrideOperatingSystem( - const OperatingSystem('linux', ''), + OperatingSystem('linux', ''), () { overrideEnvironment( { @@ -149,7 +149,7 @@ void main() { r'The default credentials location can be overridden by the user on non-windows platforms.', () { overrideOperatingSystem( - const OperatingSystem('linux', ''), + OperatingSystem('linux', ''), () { overrideEnvironment( { @@ -175,7 +175,7 @@ void main() { r'The default credentials location can be overridden by the user on windows platforms.', () { overrideOperatingSystem( - const OperatingSystem('windows', ''), + OperatingSystem('windows', ''), () { overrideEnvironment( { @@ -201,7 +201,7 @@ void main() { r'The default credentials location can be overridden by the user on windows platforms.', () { overrideOperatingSystem( - const OperatingSystem('windows', ''), + OperatingSystem('windows', ''), () { overrideEnvironment( { @@ -226,7 +226,7 @@ void main() { test(r'The default profile can be overridden via environment variable.', () { overrideOperatingSystem( - const OperatingSystem('linux', ''), + OperatingSystem('linux', ''), () { overrideEnvironment( { diff --git a/packages/aws_common/tool/generate_tests.dart b/packages/aws_common/tool/generate_tests.dart index 6d18079bcd..57a7b15413 100644 --- a/packages/aws_common/tool/generate_tests.dart +++ b/packages/aws_common/tool/generate_tests.dart @@ -163,7 +163,7 @@ void main() { output.writeln( ''' test(r'${test.name}', () { - overrideOperatingSystem(const OperatingSystem('${test.platform.name}', ''), () { + overrideOperatingSystem(OperatingSystem('${test.platform.name}', ''), () { overrideEnvironment({ ${test.environment.entries.map((entry) => "'${entry.key}': r'${entry.value}',").join('\n')} }, () {