As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Unverified Commit b24950fe authored by Ash McKenzie's avatar Ash McKenzie
Browse files

New eventuallyInDelta() testing helper function

parent 7cd080ae
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -236,3 +236,9 @@ func TestSessionsMetrics(t *testing.T) {
})
}
}
func eventuallyInDelta(t *testing.T, expected, actual, delta float64) {
require.Eventually(t, func() bool {
return ((expected - actual) < delta)
}, 1*time.Second, time.Millisecond)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment