Skip to content

Commit

Permalink
trying low timeout on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGround0 committed Nov 10, 2017
1 parent f9f8eb6 commit 1fdbaea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sharness/t0050-service-migration.sh
Expand Up @@ -16,23 +16,24 @@ test_expect_success IPFS,CLUSTER "cluster-service state preserved by migration"
kill -1 $CLUSTER_D_PID && sleep 30 &&
export BACKUP_FILE=$( ls test-config/backups/ | head -n 1) &&
ipfs-cluster-service --config "test-config" state upgrade "test-config/backups/""$BACKUP_FILE" "test-config/ipfs-cluster-data" &&
echo "successful state upgrate" &&
echo "successful state upgrade" &&
ipfs-cluster-service --config "test-config" >"$IPFS_OUTPUT" 2>&1 &
export CLUSTER_D_PID=$! &&
sleep 100 &&
sleep 30 &&
ipfs-cluster-ctl pin ls "$cid" | grep -q "$cid" &&
ipfs-cluster-ctl status "$cid" | grep -q -i "PINNED"
'

test_expect_success IPFS,CLUSTER,V1STATE "cluster-service loads v1 state correctly" '
cid=`docker exec ipfs sh -c "echo test | ipfs add -q"` &&
kill -1 $CLUSTER_D_PID && sleep 100 &&
kill -1 $CLUSTER_D_PID && sleep 30 &&
ipfs-cluster-service --config "test-config" state upgrade "test-config/v1State" "test-config/ipfs-cluster-data" &&
ipfs-cluster-service --config "test-config" >"$IPFS_OUTPUT" 2>&1 &
export CLUSTER_D_PID=$! &&
sleep 100 &&
sleep 30 &&
ipfs-cluster-ctl pin ls "$cid" | grep -q "$cid" &&
ipfs-cluster-ctl status "$cid" | grep -q -i "PINNED"
kill -1 $CLUSTER_D_PID
'

test_done

0 comments on commit 1fdbaea

Please sign in to comment.