Skip to content

Commit 41fa72e

Browse files
eernstgcommit-bot@chromium.org
authored andcommitted
Adjust test for new default values of .fromEnvironment
Breaking change #40678 mandates new default values for String.fromEnvironment, this CL adjusts the expectations of a test accordingly. Change-Id: Ib8a26005673d07c67f65708fc9c4ae7b17421670 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/139811 Reviewed-by: Johnni Winther <[email protected]> Commit-Queue: Erik Ernst <[email protected]>
1 parent 4844fa9 commit 41fa72e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/lib_2/isolate/string_from_environment_default_value_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import "dart:isolate";
1010
import "package:expect/expect.dart";
1111

1212
void test(port) {
13-
Expect.isNull(const String.fromEnvironment('NOT_FOUND'));
13+
Expect.equals('', const String.fromEnvironment('NOT_FOUND'));
1414
Expect.equals(
1515
'x', const String.fromEnvironment('NOT_FOUND', defaultValue: 'x'));
1616
if (port != null) port.send(null);

0 commit comments

Comments
 (0)