Skip to content

Commit

Permalink
Initial try on testing wait ice.
Browse files Browse the repository at this point in the history
  • Loading branch information
psprint committed Dec 20, 2022
1 parent 515688b commit 55e58b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/plugins.zunit
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
ZBIN=$ZPFX/bin
export LC_CTYPE=C
export LANG=C
export ZTMP=$(mktemp -qu)
}

@test 'wait-ice' {
# @zinit-scheduler with "burst" argument executes all tasks "now"
eval zinit wait nocd atload\'touch $ZTMP\' for zdharma-continuum/null && @zinit-scheduler burst
assert $state equals 0
assert $ZTMP is_file
}

# @test 'nnn' {
Expand Down

0 comments on commit 55e58b6

Please sign in to comment.