hyperledger / cacti

Hyperledger Cacti is a new approach to the blockchain interoperability problem
https://wiki.hyperledger.org/display/cactus
Apache License 2.0
339 stars 278 forks source link

test(weaver/sdk/node): fix flake - InteroperableHelper cryptographic fn #3336

Open petermetz opened 2 months ago

petermetz commented 2 months ago

Description

  1. On an unrelated PR (e.g. it didn't change anything related to this job) the unit_test_weaver_node_sdk_local job failed.
  2. I re-executed it and then it worked fine.

Full Error Logs

2024-06-19T13-16-15-weaver-flaky-unit-tests.log

Error Logs Snippet

2024-06-19T13:17:30.4147489Z   52 passing (11s)
2024-06-19T13:17:30.4148156Z   1 failing
2024-06-19T13:17:30.4148459Z 
2024-06-19T13:17:30.4151570Z   1) InteroperableHelper
2024-06-19T13:17:30.4152456Z        cryptographic functions
2024-06-19T13:17:30.4153640Z          encrypt and decrypt a message with default 128-bit AES key:
2024-06-19T13:17:30.4155558Z      AssertionError: expected [Function] to not throw an error but 'AssertionError: expected [Function] t…' was thrown
2024-06-19T13:17:30.4159424Z       at Context.<anonymous> (test/InteroperableHelper.js:154:22)
2024-06-19T13:17:30.4160622Z       at processImmediate (node:internal/timers:476:21)
2024-06-19T13:17:30.4161562Z 

Acceptance Criteria

  1. Test is consistently passing.

cc: @VRamakrishna @sandeepnRES

petermetz commented 2 months ago

@Dozie2001 Yes. The caveat: We don't know how to reproduce this.