these changes will help developers in the following cases: trying to create an appImage from already established development environment and trying to create appImage on WSL
The "keep_tunnel_open_time" option adds an unnecessary 60 second delay
to each test (except the tunneling test, where it is necessary). By
setting the time to 0, each test now runs 60 seconds faster.
`Main.tsx`'s `updateStatus()` was being called every 10 seconds,
which meant that `islandMode` was updated every 10 seconds.
If you were on the configuration page, and you refreshed the page
at the right moment (as soon as/just before `updateStatus()`
was being called), the config tabs showed were correct according to
the mode. If you refreshed at the wrong moment, you would get the
default tabs i.e. the tabs shown for the advanced mode (see
`ConfigurePage.js`'s `getSectionsOrder()`).
The batching telemetry tests do not function properly on Windows. They
sometimes pass and sometimes fail due to a race condition. I've been
unable to get this race condition to manifest on Linux and I believe
this is likely due to differences in how threads and the GIL are handled
between the two operating systems.
Since an "assert" halts a test, the BatchingTelemetryMessenger may not
be deconstructed. This results in pytest hanging. By adding a finally
clause, we ensure the cleanup of the BatchingTelemetryMessenger.
The ZerologonExploiter relies on impacket. Importing impacket is slow
(approximately .72s). By moving the import statement in zerologon tests
and marking them as slow, the import (and tests) can now be skipped by
running `pytest -m 'not slow'`.
WmiExploiter relies on impacket. Importing impacket is slow, which has a
negative impact on the speed of pytest collection. SSHExploiter is much
quicker to import.
Calls to encrypt_string() result in calls to pyAesCrypt.encryptStream().
These calls are very slow (about .150ms). Modifying these tests to use
static ciphertext instead of encrypting the file each time saves
approximately 300ms when running the unit test suite.