This repository was archived by the owner on Dec 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +5
-13
lines changed Expand file tree Collapse file tree 4 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ setup_build_opts() {
9
9
" |--ta_host ${TA_HOST} "
10
10
" |--db_host ${DB_HOST} "
11
11
" |--quiet"
12
- " |--proxy_passthrough"
13
12
" --define db=enable|"
14
13
" --define build_type=debug|"
15
14
" --define build_type=profile|"
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ for ((i = 0; i < ${#OPTIONS[@]}; i++)); do
22
22
cli_arg=${option} | cut -d ' |' -f 1
23
23
build_arg=${option} | cut -d ' |' -f 2
24
24
25
- bazel run accelerator --define mqtt=enable ${build_arg} -- --quiet --ta_port=${TA_PORT} ${cli_arg} &
25
+ bazel run accelerator --define mqtt=enable ${build_arg} -- --quiet --ta_port=${TA_PORT} ${cli_arg} --proxy_passthrough &
26
26
TA=$!
27
27
trap " kill -9 ${TA} ;" INT # Trap SIGINT from Ctrl-C to stop TA
28
28
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ for ((i = 0; i < ${#OPTIONS[@]}; i++)); do
22
22
cli_arg=$( echo ${option} | cut -d ' |' -f 2)
23
23
build_arg=$( echo ${option} | cut -d ' |' -f 1)
24
24
25
- bazel run accelerator ${build_arg} -- --ta_port=${TA_PORT} ${cli_arg} &
25
+ bazel run accelerator ${build_arg} -- --ta_port=${TA_PORT} ${cli_arg} --proxy_passthrough &
26
26
TA=$!
27
27
trap " kill -9 ${TA} ;" INT # Trap SIGINT from Ctrl-C to stop TA
28
28
@@ -38,11 +38,6 @@ for ((i = 0; i < ${#OPTIONS[@]}; i++)); do
38
38
python3 tests/regression/runner.py ${remaining_args} --url localhost:${TA_PORT}
39
39
rc=$?
40
40
41
- trap " kill -9 ${TA} ;" INT # Trap SIGINT from Ctrl-C to stop TA
42
-
43
- python3 tests/regression/runner.py ${remaining_args} --url localhost:${TA_PORT}
44
- rc=$?
45
-
46
41
if [ $rc -ne 0 ]; then
47
42
echo " Build option '${option} ' failed"
48
43
fail+=(" ${option} " )
Original file line number Diff line number Diff line change 3
3
import unittest
4
4
import time
5
5
import logging
6
+ from urllib import request
6
7
import urllib3
7
8
8
9
class SendTrytes (unittest .TestCase ):
@@ -80,16 +81,13 @@ def setUpClass(cls):
80
81
"command" : "getTransactionsToApprove" ,
81
82
"depth" : 4 ,
82
83
}
83
-
84
- stringified = json .dumps (command )
85
-
86
84
headers = {
87
85
'content-type' : 'application/json' ,
88
86
'X-IOTA-API-Version' : '1'
89
87
}
90
88
global URL
91
- request = urllib3 .Request (url = URL , data = stringified , headers = headers )
92
- returnData = urllib3 .urlopen (request ).read ()
89
+ req = request .Request (url = URL , data = json . dumps ( command ). encode () , headers = headers )
90
+ returnData = request .urlopen (req ).read ()
93
91
94
92
jsonData = json .loads (returnData )
95
93
rand_trytes .append (all_9_context + jsonData ["trunkTransaction" ] +
You can’t perform that action at this time.
0 commit comments