Skip to content

Commit 2ba9955

Browse files
committed
fix: path issues in command_runner
1 parent bb1aa47 commit 2ba9955

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

test/src/command_runner_test.dart

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ void main() {
199199
});
200200

201201
test('shows message when version changed', () async {
202-
commandRunner.environmentOverride = {'HOME': '/users/test'};
202+
commandRunner.environmentOverride = {
203+
'HOME': '/users/test',
204+
'LOCALAPPDATA': '/users/test',
205+
};
203206

204207
await IOOverrides.runZoned(
205208
() async {
@@ -241,10 +244,12 @@ void main() {
241244
});
242245

243246
test('cache inside XDG directory', () async {
244-
commandRunner.environmentOverride = {
245-
'HOME': '/users/test',
246-
'XDG_CONFIG_HOME': '/users/test/.xdg',
247-
};
247+
commandRunner
248+
..environmentOverride = {
249+
'HOME': '/users/test',
250+
'XDG_CONFIG_HOME': '/users/test/.xdg',
251+
}
252+
..isWindowsOverride = false;
248253

249254
final xdgCache = _MockDirectory();
250255
when(() => xdgCache.path).thenReturn('/users/test/.xdg');

0 commit comments

Comments
 (0)