@cryptotaxi247 / kubo / commits / ad67f18dc

t0130: small improvements

License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Apr 26, 2015 at 17:26 UTC ad67f18dc8df14fcc20c242e2cdd4adca5fbc054
1 file changed +5 -4
test/sharness/t0130-multinode.sh
+5 -4
@@ -16,18 +16,19 @@ test_expect_success "set up a few nodes" '
16 '
17
18 test_expect_success "add a file on node1" '
19 - export IPFS_PATH="$IPTB_ROOT/1"
19 + export IPFS_PATH="$IPTB_ROOT/1" &&
20 random 1000000 > filea &&
21 - FILEA_HASH=`ipfs add -q filea`
21 + FILEA_HASH=$(ipfs add -q filea)
22 '
23
24 test_expect_success "cat that file on node2" '
25 - export IPFS_PATH="$IPTB_ROOT/2"
26 - ipfs cat $FILEA_HASH | multihash > actual1
25 + export IPFS_PATH="$IPTB_ROOT/2" &&
26 + ipfs cat $FILEA_HASH >fileb
27 '
28
29 test_expect_success "verify files match" '
30 multihash filea > expected1 &&
31 + multihash fileb > actual1 &&
32 test_cmp actual1 expected1
33 '
34