Skip to content

Commit

Permalink
removed port test
Browse files Browse the repository at this point in the history
  • Loading branch information
git-elliot committed Nov 10, 2024
1 parent 97d6269 commit 80c8496
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions integration_test/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
Expand All @@ -18,17 +16,11 @@ import 'package:vernet/ui/adaptive/adaptive_list.dart';
import 'package:vernet/values/keys.dart';

void main() {
int port = 999;
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
late ServerSocket server;
setUpAll(() async {
configureDependencies(Env.test);
final appDocDirectory = await getApplicationDocumentsDirectory();
await configureNetworkToolsFlutter(appDocDirectory.path);
server =
await ServerSocket.bind(InternetAddress.anyIPv4, port, shared: true);
port = server.port;
debugPrint("Opened port in this machine at $port");
});

group('host scanner end-to-end test', () {
Expand Down Expand Up @@ -80,10 +72,7 @@ void main() {

final portScanButton = find.byKey(Keys.portScanButton);
await tester.tap(portScanButton);
await tester.pumpAndSettle(const Duration(seconds: 10));

expect(find.byType(AdaptiveListTile), findsAny);
// expect(find.text('$port'), findsOne);
await tester.pumpAndSettle();
});
});
}

0 comments on commit 80c8496

Please sign in to comment.