Try to debug odd test failure

This commit is contained in:
Ethan Frey 2020-01-23 15:46:56 +01:00
parent 3eacb108bd
commit be1eb6f72f

View File

@ -169,8 +169,8 @@ describe("CosmosConnection", () => {
expect(account.address).toEqual(defaultAddress); expect(account.address).toEqual(defaultAddress);
// Undefined until we sign a transaction (on multiple runs against one server this will be set), allow both // Undefined until we sign a transaction (on multiple runs against one server this will be set), allow both
if (account.pubkey !== undefined) { if (account.pubkey !== undefined) {
console.log(account.pubkey); console.log(`account: ${account.pubkey.data.length}`, account.pubkey);
console.log(defaultPubkey); console.log(`default: ${defaultPubkey.data.length}`, defaultPubkey);
expect(account.pubkey).toEqual(defaultPubkey); expect(account.pubkey).toEqual(defaultPubkey);
} }
// Starts with two tokens // Starts with two tokens