Rigbox icon indicating copy to clipboard operation
Rigbox copied to clipboard

Make AlyxPanel tests more robust

Open k1o0 opened this issue 6 years ago • 0 comments

The following errors are sporadic and due to the test running too slowly:

================================================================================
Verification failed in AlyxPanel_test[BaseURL=https___test_alyx_internationalbrainlab_org]/test_updateWeightButton.

    ----------------
    Test Diagnostic:
    ----------------
    Button failed to reset

    ---------------------
    Framework Diagnostic:
    ---------------------
    verifyEqual failed.
    --> The character arrays are not equal.
    
    Actual char:
        Record 35.0g
    Expected char:
        Manual weighing

    ------------------
    Stack Information:
    ------------------
    In C:\Users\Experiment\Documents\GitHub\Rigbox\tests\AlyxPanel_test.m (AlyxPanel_test.test_updateWeightButton) at 385
================================================================================

The following lines must be run in under 5 seconds but on occasion don't: https://github.com/cortex-lab/Rigbox/blob/2b6b45c46dd91b36dfd8c900a9e6c6e11a45c82b/tests/AlyxPanel_test.m#L374-L377

k1o0 avatar Jul 19 '19 09:07 k1o0