Skip to content
Merged
9 changes: 9 additions & 0 deletions .github/workflows/script/solo_smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ function start_contract_test ()
cd -
if [[ $result -ne 0 ]]; then
echo "Smart contract test failed with exit code $result"
echo "Test local network connection using nc"
sudo apt-get update && sudo apt-get install -y netcat-traditional
nc -zv 127.0.0.1 50211

log_and_exit $result
fi
}
Expand Down Expand Up @@ -159,6 +163,11 @@ function log_and_exit()
cat relay.log || true
echo "------- END RELAY DUMP -------"

echo "------- BEGIN MIRROR REST DUMP -------"
kubectl get services -n "${SOLO_NAMESPACE}" --output=name | grep rest | grep -v '\-restjava' | xargs -IREST kubectl logs -n "${SOLO_NAMESPACE}" REST > rest.log || true
cat rest.log || true
echo "------- END MIRROR REST DUMP -------"

echo "------- Last port-forward check -------" >> port-forward.log
ps -ef |grep port-forward >> port-forward.log

Expand Down
4 changes: 1 addition & 3 deletions examples/create-topic.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ async function main() {
let finished = false;
new TopicMessageQuery()
.setTopicId(createReceipt.topicId)
.setMaxAttempts(400)
.setLimit(1)
// eslint-disable-next-line no-unused-vars
.subscribe(
mirrorClient,
Expand Down Expand Up @@ -150,7 +148,7 @@ async function main() {
});
});
req.on('error', e => {
console.log(`problem with request: ${e.message}`);
console.log(`problem with request, message = : ${e.message} cause = : ${e.cause}`);
});
req.end(); // make the request
// wait and try again
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/commands/tests/mirror-node-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,11 @@ export class MirrorNodeTest extends BaseCommandTest {
const transactionsEndpoint: string = 'http://localhost:5551/api/v1/transactions';
const firstResponse = await fetch(transactionsEndpoint);
const firstData = await firstResponse.json();
console.log(`firstData = ${JSON.stringify(firstData, null, 2)}`);
await sleep(Duration.ofSeconds(10));
const secondResponse = await fetch(transactionsEndpoint);
const secondData = await secondResponse.json();
console.log(`secondData = ${JSON.stringify(secondData, null, 2)}`);
expect(firstData.transactions).to.not.be.undefined;
expect(firstData.transactions.length).to.be.gt(0);
expect(secondData.transactions).to.not.be.undefined;
Expand Down
Loading