Skip to content

Commit cad4cc6

Browse files
committed
Initial try on testing wait ice
1 parent 515688b commit cad4cc6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/plugins.zunit

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
ZBIN=$ZPFX/bin
77
export LC_CTYPE=C
88
export LANG=C
9+
export ZTMP=$(mktemp -qu)
10+
}
11+
12+
@test 'wait-ice' {
13+
run zinit wait nocd atload"qbefore: ${(kv)ZINIT_TASKS} && command touch $ZTMP" for zdharma-continuum/null && print -l tasks: ${(kv)ZINIT_TASKS}
14+
sleep 1
15+
assert $state equals 0
16+
assert $ZTMP is_file
917
}
1018

1119
# @test 'nnn' {

0 commit comments

Comments
 (0)