Fix ESP32-S2 sim test - #2378
Conversation
|
AMP wants number 1 here, less code so perhaps preferably.. imho 2 can be ignored - and 3 might as well be added.. either way issue is mem pressure - something like CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=6 in src/platforms/esp32/test/sdkconfig.ci.wokwi - makes CI pass I have tested locally (on wokwi) with number 1 and the sdkconfig.. Review of
|
160fa1e to
301567e
Compare
There was a problem hiding this comment.
test_wifi_teardown didn't make it in, I'm fine without it..
Destroying a GlobalContext without network:stop() left the driver's esp_event handlers registered against freed ClientData; a late got_ip then hit freed memory and hung the esp32s2 sim test. Unregister the handlers on driver destroy, and harden test_wifi_managed to always stop the network and tolerate the slow simulated DHCP. Signed-off-by: Davide Bettio <davide@uninstall.it>
301567e to
4d6c292
Compare
These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later