File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,15 @@ test_kvs_key() {
2626 test_cmp expected output
2727}
2828
29+ #
30+ # pending request stats are 0 at start of tests
31+ #
32+
33+ test_expect_success ' kvs: no pending requests at start of tests' '
34+ pendingcount=$(flux module stats -p pending_requests kvs) &&
35+ test $pendingcount -eq 0
36+ '
37+
2938#
3039# large value test
3140#
@@ -533,13 +542,17 @@ wait_versionwaiters() {
533542
534543# In order to test, wait for a version that will not happen
535544test_expect_success NO_CHAIN_LINT ' kvs: ENOSYS returned on unfinished requests on module unload' '
545+ pendingcount=$(flux module stats -p pending_requests kvs) &&
546+ pendingcountexp=$(($pendingcount+1)) &&
536547 WAITCOUNT=$(flux module stats --parse namespace.primary.#versionwaiters kvs) &&
537548 WAITCOUNT=$(($WAITCOUNT+1))
538549 VERS=$(flux kvs version) &&
539550 VERSWAIT=$(($VERS+10)) &&
540551 flux kvs wait ${VERSWAIT} 2> enosys.err &
541552 pid=$! &&
542553 wait_versionwaiters ${WAITCOUNT} &&
554+ newcount=$(flux module stats -p pending_requests kvs) &&
555+ test $pendingcountexp -eq $newcount &&
543556 flux module remove kvs &&
544557 ! wait $pid &&
545558 grep "Function not implemented" enosys.err
You can’t perform that action at this time.
0 commit comments