Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add restapi tests for stateful timers #382

Merged
merged 4 commits into from
May 20, 2023
Merged

Add restapi tests for stateful timers #382

merged 4 commits into from
May 20, 2023

Conversation

hanzei
Copy link
Contributor

@hanzei hanzei commented Nov 10, 2022

Summary

Add restapi tests for #375

Ticket Link

https://mattermost.atlassian.net/browse/MM-48342

@hanzei hanzei added the 2: Dev Review Requires review by a core committer label Nov 10, 2022
@hanzei hanzei requested a review from levb November 10, 2022 13:20
@hanzei hanzei marked this pull request as draft November 10, 2022 13:20
@hanzei hanzei added the Work In Progress Not yet ready for review label Dec 7, 2022
Base automatically changed from timer to master February 21, 2023 14:42
@codecov-commenter
Copy link

codecov-commenter commented Mar 21, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (bc131ac) 20.15% compared to head (f1d4b51) 20.15%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #382   +/-   ##
=======================================
  Coverage   20.15%   20.15%           
=======================================
  Files          80       80           
  Lines        6600     6600           
=======================================
  Hits         1330     1330           
  Misses       5138     5138           
  Partials      132      132           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mattermost-build
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@hanzei hanzei marked this pull request as ready for review May 19, 2023 16:50
@hanzei hanzei removed Work In Progress Not yet ready for review Lifecycle/1:stale labels May 19, 2023
@hanzei hanzei requested a review from mickmister May 19, 2023 16:51
@hanzei hanzei added this to the v1.3.0 milestone May 19, 2023
assert.NoError(err)

// Check if callback was called
require.Eventually(th, func() bool { mut.Lock(); defer mut.Unlock(); return called }, 10*time.Second, 50*time.Millisecond)
Copy link
Contributor

Choose a reason for hiding this comment

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

Very cool solution 👍

@hanzei hanzei added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels May 20, 2023
@hanzei hanzei merged commit 1383ba8 into master May 20, 2023
@hanzei hanzei deleted the timer_test branch May 20, 2023 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants