Skip to content

Commit 4bd6be4

Browse files
committed
add test log
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
1 parent f828bf7 commit 4bd6be4

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/script/solo_smoke_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ function start_sdk_test ()
100100
cd -
101101
if [[ $result -ne 0 ]]; then
102102
echo "JavaScript SDK test failed with exit code $result"
103+
log_and_exit $result
103104
fi
104105
}
105106

examples/create-topic.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ async function main() {
148148
});
149149
});
150150
req.on('error', e => {
151-
console.log(`problem with request, message = : ${e.message}`);
152-
console.log(`problem with request, cause = : ${e.cause}`);
151+
console.log(`problem with request, message = : ${e.message} cause = : ${e.cause}`);
153152
});
154153
req.end(); // make the request
155154
// wait and try again

test/e2e/commands/tests/mirror-node-test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,11 @@ export class MirrorNodeTest extends BaseCommandTest {
179179
const transactionsEndpoint: string = 'http://localhost:5551/api/v1/transactions';
180180
const firstResponse = await fetch(transactionsEndpoint);
181181
const firstData = await firstResponse.json();
182+
console.log(`firstData = ${JSON.stringify(firstData, null, 2)}`);
182183
await sleep(Duration.ofSeconds(10));
183184
const secondResponse = await fetch(transactionsEndpoint);
184185
const secondData = await secondResponse.json();
186+
console.log(`secondData = ${JSON.stringify(secondData, null, 2)}`);
185187
expect(firstData.transactions).to.not.be.undefined;
186188
expect(firstData.transactions.length).to.be.gt(0);
187189
expect(secondData.transactions).to.not.be.undefined;

0 commit comments

Comments
 (0)