Skip to content

Commit

Permalink
Fix sharness
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
  • Loading branch information
hsanjuan committed May 25, 2018
1 parent 4942ddc commit 7638fab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sharness/lib/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ test_cluster_init() {
echo "cluster init FAIL: error on ipfs cluster init"
exit 1
fi
rm -rf "test-config/ipfs-cluster-data"
rm -rf "test-config/raft"
if [ -n "$custom_config_files" ]; then
cp -f ${custom_config_files}/* "test-config"
fi
Expand Down
2 changes: 1 addition & 1 deletion sharness/t0051-service-state-upgrade-from-old.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test_expect_success IPFS,CLUSTER,V1STATE,JQ "cluster-service loads v1 state corr
ipfs-cluster-ctl pin add "$cid2" &&
cluster_kill &&
sleep 15 &&
SNAP_DIR=`find test-config/ipfs-cluster-data/snapshots/ -maxdepth 1 -mindepth 1 | head -n 1` &&
SNAP_DIR=`find test-config/raft/snapshots/ -maxdepth 1 -mindepth 1 | head -n 1` &&
cp v1State "$SNAP_DIR/state.bin" &&
cat "$SNAP_DIR/meta.json" | jq --arg CRC "$V1_CRC" '"'"'.CRC = $CRC'"'"' > tmp.json &&
cp tmp.json "$SNAP_DIR/meta.json" &&
Expand Down

0 comments on commit 7638fab

Please sign in to comment.