Skip to content

Commit 1bb2d6c

Browse files
committed
test: Testing wait ice.
1 parent 515688b commit 1bb2d6c

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+
# @zinit-scheduler with "burst" argument executes all tasks "now"
14+
eval zinit wait nocd atload\'touch $ZTMP\' for zdharma-continuum/null && @zinit-scheduler burst
15+
assert $state equals 0
16+
assert $ZTMP is_file
917
}
1018

1119
# @test 'nnn' {

0 commit comments

Comments
 (0)