test: fail balance test

This commit is contained in:
Anthony Laibe 2022-10-27 10:45:59 +02:00 committed by Anthony Laibe
parent 339cc8826e
commit 34d7d4354b
3 changed files with 21 additions and 18 deletions

View File

@ -57,6 +57,7 @@ pipeline {
/* Include library in order to compile the project */ /* Include library in order to compile the project */
LD_LIBRARY_PATH = "$QTDIR/lib:$WORKSPACE/vendor/status-go/build/bin:$WORKSPACE/vendor/status-keycard-go/build/libkeycard/" LD_LIBRARY_PATH = "$QTDIR/lib:$WORKSPACE/vendor/status-go/build/bin:$WORKSPACE/vendor/status-keycard-go/build/libkeycard/"
INFURA_TOKEN = "cd313fedd0dd4699b194d72b5184be06" INFURA_TOKEN = "cd313fedd0dd4699b194d72b5184be06"
GOERLI_NETWORK_RPC_URL = "http://0.0.0.0:${855 + env.EXECUTOR_NUMBER}"
} }
stages { stages {
@ -90,13 +91,12 @@ pipeline {
"-p 127.0.0.1:${goerli_rpc_port}:8545 -v ${goerli_db_path}:/goerli-db", "-p 127.0.0.1:${goerli_rpc_port}:8545 -v ${goerli_db_path}:/goerli-db",
"-e 10 -m='${mnemonic}' --chain.chainId 5 --database.dbPath /goerli-db" "-e 10 -m='${mnemonic}' --chain.chainId 5 --database.dbPath /goerli-db"
) { c -> ) { c ->
sh "docker logs ${c.id}"
docker.image('statusteam/status-go:v0.84.0').withRun( docker.image('statusteam/status-go:v0.84.0').withRun(
"-p 127.0.0.1:${rpc_port}:8545 -p 127.0.0.1:${geth_port}:30303/tcp -p 127.0.0.1:${geth_port}:30303/udp -v ${env.WORKSPACE}/ci/mailserver/config.json:/config.json", "-p 127.0.0.1:${rpc_port}:8545 -p 127.0.0.1:${geth_port}:30303/tcp -p 127.0.0.1:${geth_port}:30303/udp -v ${env.WORKSPACE}/ci/mailserver/config.json:/config.json",
"-log=INFO -log-without-color -c=/config.json -dir=/tmp" "-log=INFO -log-without-color -c=/config.json -dir=/tmp"
) { c2 -> ) { c2 ->
env.PEER_ENR = sh(script:"RPC_PORT=${rpc_port} MAILSERVER_PORT=${geth_port} ${env.WORKSPACE}/ci/mailserver/get_enode.sh", returnStdout:true).trim() env.PEER_ENR = sh(script:"RPC_PORT=${rpc_port} MAILSERVER_PORT=${geth_port} ${env.WORKSPACE}/ci/mailserver/get_enode.sh", returnStdout:true).trim()
withEnv(["TEST_PEER_ENR=${env.PEER_ENR}", "GOERLI_NETWORK_RPC_URL=http://0.0.0.0:${goerli_rpc_port}"]){ withEnv(["TEST_PEER_ENR=${env.PEER_ENR}"]){
wrap([ wrap([
$class: 'Xvfb', $class: 'Xvfb',
autoDisplayName: true, autoDisplayName: true,
@ -109,22 +109,22 @@ pipeline {
--retry --retry
2 2
--tags --tags
~mayfail ~mayfail
--tags --tags
~merge ~merge
--tags --tags
~relyon-mailserver ~relyon-mailserver
--config --config
addAUT addAUT
nim_status_client nim_status_client
${WORKSPACE}/bin ${WORKSPACE}/bin
''', ''',
squishPackageName: 'squish-6.7.2-qt514x-linux64', squishPackageName: 'squish-6.7.2-qt514x-linux64',
testSuite: '${WORKSPACE}/test/ui-test/testSuites/*', testSuite: '${WORKSPACE}/test/ui-test/testSuites/*',
]) ])
echo res echo res
if ( res == "SUCCESS" || res == "UNSTABLE" ) { if ( res == "SUCCESS" || res == "UNSTABLE" ) {
@ -135,6 +135,7 @@ pipeline {
} }
} }
} }
sh "docker logs ${c.id}"
} }
} }
} }

View File

@ -12,6 +12,7 @@ let INFURA_TOKEN_RESOLVED =
else: else:
INFURA_TOKEN INFURA_TOKEN
const GOERLI_NETWORK_RPC_URL = $getEnv("GOERLI_NETWORK_RPC_URL") const GOERLI_NETWORK_RPC_URL = $getEnv("GOERLI_NETWORK_RPC_URL")
let GOERLI_RPC_URL_RESOLVED = let GOERLI_RPC_URL_RESOLVED =
if GOERLI_NETWORK_RPC_URL != "": if GOERLI_NETWORK_RPC_URL != "":
@ -19,6 +20,7 @@ let GOERLI_RPC_URL_RESOLVED =
else: else:
"https://goerli.infura.io/v3/" & INFURA_TOKEN_RESOLVED "https://goerli.infura.io/v3/" & INFURA_TOKEN_RESOLVED
let GOERLI_CONFIG = let GOERLI_CONFIG =
if GOERLI_NETWORK_RPC_URL != "": if GOERLI_NETWORK_RPC_URL != "":
%* { %* {

View File

@ -299,7 +299,7 @@ class StatusWalletScreen:
found = True found = True
if (tokenListItem.balance == "0" and reset < 3): if (tokenListItem.balance == "0" and reset < 3):
break break
return return
if not found: if not found: