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 cad4cc6
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' {
run zinit wait nocd atload"qbefore: ${(kv)ZINIT_TASKS} && command touch $ZTMP" for zdharma-continuum/null && print -l tasks: ${(kv)ZINIT_TASKS}
sleep 1
assert $state equals 0
assert $ZTMP is_file
}

# @test 'nnn' {
Expand Down

0 comments on commit cad4cc6

Please sign in to comment.