Skip to content

Commit

Permalink
sharness: test init with crdt
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanjuan committed Aug 12, 2019
1 parent 063c5f1 commit 2815deb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sharness/t0021-service-init.sh
Expand Up @@ -24,6 +24,12 @@ test_expect_success "cluster-service init with raft generates only raft config"
[ "$(jq -M -r .consensus.crdt test-config/service.json)" == "null" ]
'

test_expect_success "cluster-service init with crdt generates only crdt config" '
ipfs-cluster-service --config "test-config" init -f --consensus crdt &&
[ "$(jq -M -r .consensus.crdt test-config/service.json)" != "null" ] &&
[ "$(jq -M -r .consensus.raft test-config/service.json)" == "null" ]
'

test_clean_cluster

test_done

0 comments on commit 2815deb

Please sign in to comment.