Skip to content

Flaky BlockNodeConnectionManagerTest testStartConfigWatcher_reactsToCreateModifyDelete #22289

@derektriley

Description

@derektriley

Background

Fix this flaky test:
https://scans.gradle.com/s/tjx2x7feraco6/tests/task/:app:test/details/com.hedera.node.app.blocks.impl.streaming.BlockNodeConnectionManagerTest/testStartConfigWatcher_reactsToCreateModifyDelete()?top-execution=1

org.opentest4j.AssertionFailedError: 	
expected: []	
 but was: [BlockNodeConfiguration[address=localhost, port=8080, priority=0, messageSizeSoftLimitBytes=2097152, messageSizeHardLimitBytes=6292480]]	

at com.hedera.node.app.blocks.impl.streaming.BlockNodeConnectionManagerTest.testStartConfigWatcher_reactsToCreateModifyDelete(BlockNodeConnectionManagerTest.java:1373)	
at java.lang.reflect.Method.invoke(Method.java:580)	
at java.util.ArrayList.forEach(ArrayList.java:1596)	
at java.util.ArrayList.forEach(ArrayList.java:1596)

Acceptance Criteria

Fix the flaky test above to make it stable

Dependencies

No response

Definition of Ready (DoR) Checklist

  • Clear acceptance criteria
  • Clear and detailed description
  • Dependencies identified
  • Links to documentation
  • Should be completable in 2-3 Days
  • Initial draft of Low-level design document
  • At least high level test plan
  • Groomed/Estimated

Definition of Done (DoD) Checklist

  • Acceptance Criteria complete
  • No Codacy issues greater than minor (in new code)
  • JavaDocs updated/created
  • Code commented
  • Unit tests created/updated
  • 80% test code coverage (in new code)
  • Happy Path and major negative cases in HAPI tests as applicable

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions