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

Testing wait ice and plugin effects unloading #442

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

psprint
Copy link
Contributor

@psprint psprint commented Dec 20, 2022

Description

I've read about the need on testing wait ice. The following could work, but it doesn't. I'm commiting it so that some other eyes might come up with a solution.

Motivation and Context

Related Issue(s)

Usage examples

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@psprint
Copy link
Contributor Author

psprint commented Dec 20, 2022

@vladdoster @pschmitt: The test works correctly now because:

  • eval is used to run the test command instead of run,
  • @zinit-scheduler burst is used to flush all wait plugins.

@psprint psprint changed the title Initial try on testing wait ice Testing wait ice Dec 20, 2022
@psprint
Copy link
Contributor Author

psprint commented Dec 20, 2022

@vladdoster @pschmitt @jankatins I've checked that the added test correctly detects bug breaking of the wait'' ice from #429 and fixes #409.

…[[ -n $var ]]'.

Also test plugin unloading of atload'!…' ice (tracked atload'' ice)
@psprint psprint changed the title Testing wait ice Testing wait ice and plugin effects unloading Dec 22, 2022
@psprint
Copy link
Contributor Author

psprint commented Dec 22, 2022

@vladdoster @pschmitt @jankatins

Added plugin unloading tests (they are based on load''/unload'' ices, so they are tested too).

@psprint
Copy link
Contributor Author

psprint commented Jul 30, 2023

@vladdoster @pschmitt @alichtman: ping?

}

@test '(un)load-ices' {
rm -f $ZTMP
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be moved to the setup function.

}

@test 'wait-ice-with-condition' {
rm -f $ZTMP
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be moved to the setup function.

}

@test 'wait-ice' {
rm -f $ZTMP
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be moved to the setup function.

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

Successfully merging this pull request may close these issues.

3 participants