close method

Future<void> close()

Stop the test server and clean up resources.

Closes the HTTP client and stops the Supafast application server. Should be called in test tearDown methods to prevent resource leaks.

Example:

tearDown(() async {
  await testApp.close();
});

Implementation

Future<void> close() async {
  _client.close();
  await app.close();
  _port = null;
  _hostname = null;
}