Skip to content

Commit 3d920e1

Browse files
committed
fix: make dcc send test temp path cross-platform
1 parent f66ac65 commit 3d920e1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/chat_session_controller_test.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,9 @@ void main() {
13991399
ircService: service,
14001400
dccService: DccService(backend: dccBackend),
14011401
);
1402-
final file = File('${Directory.systemTemp.path}\\androidircx-dcc-test.txt');
1402+
final file = File.fromUri(
1403+
Directory.systemTemp.uri.resolve('androidircx-dcc-test.txt'),
1404+
);
14031405
await file.writeAsString('hello dcc');
14041406

14051407
await controller.start();

0 commit comments

Comments
 (0)