Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: make test more robust by non using globals and guessing the context #321

Conversation

maartenbreddels
Copy link
Contributor

We relied on a global variable to wait for the component to be called,
but this seems to not be very robust. Instead, we pass a unique ID
via a query parameter to not re-use the Event object, and store the
context that we actually use, instead of relying on the last used
context found.

@maartenbreddels maartenbreddels changed the base branch from 10-03-feat_allow_reconnecting_to_existing_kernel_and_display_widget_by_id to 10-03-refactor_use_kernel_id_instead_of_session_id October 5, 2023 13:56
@maartenbreddels maartenbreddels force-pushed the 10-05-test_make_test_more_robust_by_non_using_globals_and_guessing_the_context branch 2 times, most recently from 8184556 to 8eb41fa Compare October 5, 2023 14:06
@maartenbreddels maartenbreddels force-pushed the 10-03-refactor_use_kernel_id_instead_of_session_id branch from 1c7acd5 to 8358105 Compare October 5, 2023 14:17
@maartenbreddels maartenbreddels force-pushed the 10-05-test_make_test_more_robust_by_non_using_globals_and_guessing_the_context branch from 8eb41fa to dcac72f Compare October 5, 2023 14:17
@maartenbreddels maartenbreddels force-pushed the 10-03-refactor_use_kernel_id_instead_of_session_id branch from 8358105 to ac85fa2 Compare October 5, 2023 19:33
@maartenbreddels maartenbreddels force-pushed the 10-05-test_make_test_more_robust_by_non_using_globals_and_guessing_the_context branch from dcac72f to 5897f28 Compare October 5, 2023 19:33
@maartenbreddels maartenbreddels force-pushed the 10-03-refactor_use_kernel_id_instead_of_session_id branch from ac85fa2 to b1f21e8 Compare October 6, 2023 10:34
@maartenbreddels maartenbreddels force-pushed the 10-05-test_make_test_more_robust_by_non_using_globals_and_guessing_the_context branch from 5897f28 to dc2cd38 Compare October 6, 2023 10:34
@maartenbreddels maartenbreddels force-pushed the 10-03-refactor_use_kernel_id_instead_of_session_id branch from b1f21e8 to f660bf9 Compare October 6, 2023 11:00
@maartenbreddels maartenbreddels force-pushed the 10-05-test_make_test_more_robust_by_non_using_globals_and_guessing_the_context branch from dc2cd38 to 7b0d651 Compare October 6, 2023 11:00
@maartenbreddels maartenbreddels force-pushed the 10-03-refactor_use_kernel_id_instead_of_session_id branch from f660bf9 to 062b154 Compare October 11, 2023 09:53
@maartenbreddels maartenbreddels force-pushed the 10-05-test_make_test_more_robust_by_non_using_globals_and_guessing_the_context branch from 7b0d651 to d78eac8 Compare October 11, 2023 09:53
@maartenbreddels maartenbreddels changed the base branch from 10-03-refactor_use_kernel_id_instead_of_session_id to master October 11, 2023 10:31
…text

We relied on a global variable to wait for the component to be called,
but this seems to not be very robust. Instead, we pass a unique ID
via a query parameter to not re-use the Event object, and store the
context that we actually use, instead of relying on the last used
context found.
@maartenbreddels maartenbreddels force-pushed the 10-05-test_make_test_more_robust_by_non_using_globals_and_guessing_the_context branch from d78eac8 to 3af1276 Compare October 11, 2023 10:31
@maartenbreddels maartenbreddels merged commit c05b4b0 into master Oct 11, 2023
21 checks passed
Copy link
Contributor Author

Merge Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant