Skip to content

Commit bd045ea

Browse files
chu11mergify[bot]
authored andcommitted
t: cover flux kvs sync
Problem: The new flux kvs sync command is not covered. Add coverage in t1010-kvs-commit-sync.t.
1 parent f12fb54 commit bd045ea

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

t/t1010-kvs-commit-sync.t

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test_expect_success 'kvs: no checkpoint of kvs-primary should exist yet' '
3333
test_must_fail checkpoint_get kvs-primary
3434
'
3535

36-
test_expect_success 'kvs: put some data to kvs and sync it' '
36+
test_expect_success 'kvs: put some data to kvs and sync it (flux kvs put)' '
3737
flux kvs put --blobref --sync c=3 > syncblob.out
3838
'
3939

@@ -46,6 +46,16 @@ test_expect_success 'kvs: checkpoint of kvs-primary should match rootref' '
4646
test_cmp syncblob.out checkpoint.out
4747
'
4848

49+
test_expect_success 'kvs: put some data to kvs and sync it (flux kvs sync)' '
50+
flux kvs put --blobref d=4 > syncblob2.out &&
51+
flux kvs sync
52+
'
53+
54+
test_expect_success 'kvs: checkpoint of kvs-primary should match rootref' '
55+
checkpoint_get kvs-primary | jq -r .value.rootref > checkpoint2.out &&
56+
test_cmp syncblob2.out checkpoint2.out
57+
'
58+
4959
test_expect_success 'kvs: sync fails against non-primary namespace' '
5060
flux kvs namespace create ${TESTNAMESPACE} &&
5161
flux kvs put --namespace=${TESTNAMESPACE} a=10 &&

0 commit comments

Comments
 (0)