Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit f16536e

Browse files
technohippymhevery
authored andcommitted
fix: properly restore locale after test
Closes #708
1 parent 574065f commit f16536e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/filter/date_spec.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ void main() {
6969

7070
it('should accept various locales', () {
7171

72+
String defaultLocale = Intl.defaultLocale;
7273
try {
7374
Intl.defaultLocale = 'de';
7475
expect(date(noon, "medium")).
@@ -78,7 +79,7 @@ void main() {
7879
expect(date(noon, "medium")).
7980
toEqual('sept. 3, 2010 12:05:08 PM');
8081
} finally {
81-
Intl.defaultLocale = 'en';
82+
Intl.defaultLocale = defaultLocale;
8283
}
8384
});
8485
});

0 commit comments

Comments
 (0)