Skip to content

Commit b5b2807

Browse files
author
galrogo
committed
tests work. Now running 2_start_and_stop_a_node_known_database-testnet
1 parent d25303e commit b5b2807

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

run_all_stable_tests.sh

+2-6
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@ else VER=$1;
77
fi
88

99
echo "running tests"
10-
echo "1_start_and_stop_a_node_without_database-mainnet.sh"
1110
bash 1_start_and_stop_a_node_without_database-mainnet.sh $VER
1211
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
13-
echo "1_start_and_stop_a_node_without_database-testnet.sh"
1412
bash 1_start_and_stop_a_node_without_database-testnet.sh $VER
1513
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
16-
bash 2_start_and_stop_a_node_known_database-testnet.sh
17-
echo "bash 2_start_and_stop_a_node_known_database-testnet.sh"
14+
bash 2_start_and_stop_a_node_known_database-testnet.sh $VER
1815
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
1916
bash 3_create_a_transaction_on_Node_A_and_find_it_in_Node_B.sh $VER
20-
echo "bash 3_create_a_transaction_on_Node_A_and_find_it_in_Node_B.sh"
2117
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
22-
echo "finished running tests"
18+
echo "finished running tests successfully"

solid.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ def getTrytes(hash):
6767

6868
else:
6969
print "waiting for API"
70-
time.sleep(10)
70+
time.sleep(10)

start_and_stop_a_node.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ do
2424
if $3;
2525
then
2626
echo "copy testnet db"
27-
cp -f ../testnet_files/testnetdb $node/testnetdb
28-
cp -f ../testnet_files/snapshot.txt $node/snapshot.txt
27+
cp -rf ../../testnet_files/testnetdb testnetdb
28+
cp -f ../../testnet_files/snapshot.txt snapshot.txt
2929
else #NO really working
3030
echo "copy mainnet db"
3131
cp -f ../testnet_files/testnetdb $node/testnetdb
@@ -44,6 +44,7 @@ do
4444
else
4545
echo "start node.. mainnet on port: "$port
4646
fi
47+
echo "cmdOpt ="$cmdOpt
4748
java -jar iri-$1.jar -p $port -u $port -t `expr $port + $5` -n 'udp://localhost:'`expr $port - 1`' udp://localhost:'`expr $port + 1` $cmdOpt &> iri.log &
4849
echo $! > iri.pid
4950
cd ..

0 commit comments

Comments
 (0)