Skip to content

Commit efc3c5b

Browse files
committed
fix formatting, try to enable windows tests
1 parent 88f2f09 commit efc3c5b

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/network_info_plus.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ jobs:
178178
run: ./.github/workflows/scripts/build-examples.sh windows ./lib/main.dart
179179

180180
windows_integration_test:
181-
if: false # TODO: reinstate this when the windows implementation is fixed
182181
runs-on: windows-latest
183182
timeout-minutes: 30
184183
steps:

packages/network_info_plus/network_info_plus/test/network_info_plus_linux_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@TestOn('linux')
2-
library network_info_plus_linux_test;
2+
library;
33

44
import 'package:flutter_test/flutter_test.dart';
55
import 'package:network_info_plus/network_info_plus.dart';

packages/network_info_plus/network_info_plus/test/network_info_plus_windows_test.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@TestOn('windows')
2-
library device_info_plus_windows_test;
2+
library;
33

44
import 'package:flutter_test/flutter_test.dart';
55
import 'package:network_info_plus/network_info_plus.dart';
@@ -27,8 +27,10 @@ void main() {
2727
final plugin = NetworkInfoPlusWindowsPlugin();
2828
final ipAddress = await plugin.getWifiIP();
2929
expect(
30-
ipAddress,
31-
matches(
32-
r'^(?=\d+\.\d+\.\d+\.\d+$)(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\.?){4}$'));
30+
ipAddress,
31+
matches(
32+
r'^(?=\d+\.\d+\.\d+\.\d+$)(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\.?){4}$',
33+
),
34+
);
3335
});
3436
}

0 commit comments

Comments
 (0)