Skip to content

Make retry/polling intervals overridable vars to speed up tests - #200

Merged
gab-arrobo merged 2 commits into
omec-project:mainfrom
gab-arrobo:config-intervals
Oct 15, 2026
Merged

gab-arrobo merged 2 commits into
omec-project:mainfrom
gab-arrobo:config-intervals

Conversation

@gab-arrobo

Copy link
Copy Markdown
Contributor

Also use accessors (New/Set/Get)

Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>
@gab-arrobo
gab-arrobo requested review from a team and a balanced review from Copilot October 15, 2026 21:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The eviction test can finish before background eviction runs, leaving that behavior untested.

1 open finding
What changed in this PR

This PR speeds up NRF cache tests by replacing fixed waits with condition polling and adopting model accessors.

Changes:

  • Add a polling helper for TTL and eviction tests.
  • Use model constructors, setters, and getters in test code.
File Description
nrfcache/​nrfcache_test.go Replace fixed sleeps with polling and update model initialization and access.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread nrfcache/nrfcache_test.go Outdated
Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>
Copilot AI balanced review requested due to automatic review settings October 15, 2026 21:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The test-only changes preserve assertions and improve eviction verification, with no identified blocking issues; tests were not executed.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced

@andybavier andybavier left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@gab-arrobo
gab-arrobo merged commit 59619a4 into omec-project:main Oct 15, 2026
9 checks passed
@gab-arrobo
gab-arrobo deleted the config-intervals branch October 15, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants