Skip to content

Commit 2551646

Browse files
author
liuboping
committed
test: fix getDefaultShellPath test for Windows compatibility
1 parent eef6a6c commit 2551646

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/services/local_terminal_service_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ void main() {
113113

114114
// Assert (Then)
115115
expect(result, isNotEmpty);
116-
expect(result, startsWith('/'));
116+
// On Windows, returns cmd.exe; on Unix-like, returns /bin/bash or similar
117+
expect(result, anyOf(startsWith('/'), equals('cmd.exe')));
117118
});
118119

119120
test('When getDefaultShellPath called multiple times, Then returns consistent result', () {

0 commit comments

Comments
 (0)