Skip to content

Commit

Permalink
t: cover FLUX_KVS_SYNC without backing store
Browse files Browse the repository at this point in the history
Problem: There is no coverage to ensure FLUX_KVS_SYNC does not
work if there is no backing store.

Add coverage in t1010-kvs-commit-sync.t.
  • Loading branch information
chu11 committed Aug 29, 2024
1 parent f3cdc90 commit 0868ed9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions t/t1010-kvs-commit-sync.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ checkpoint_get() {
jq -j -c -n "{key:\"$1\"}" | $RPC content.checkpoint-get
}

test_expect_success 'load content module' '
flux module load content
test_expect_success 'load content module and kvs' '
flux module load content &&
flux module load kvs
'

test_expect_success 'sync does not work without a backing store' '
test_must_fail flux kvs put --sync testsync=1
'

test_expect_success 'load content-sqlite and kvs and add some data' '
flux module load content-sqlite &&
flux module load kvs &&
flux kvs put a=1 &&
flux kvs put b=2
'
Expand Down

0 comments on commit 0868ed9

Please sign in to comment.