-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
tests: Add triggering random go failpoints to linearizability tests #14687
Conversation
316baa8
to
37b5ddc
Compare
Codecov Report
@@ Coverage Diff @@
## main #14687 +/- ##
==========================================
+ Coverage 75.44% 75.52% +0.07%
==========================================
Files 457 457
Lines 37299 37299
==========================================
+ Hits 28141 28169 +28
+ Misses 7382 7361 -21
+ Partials 1776 1769 -7
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -130,7 +130,7 @@ func triggerFailpoints(ctx context.Context, clus *e2e.EtcdProcessCluster, config | |||
for successes < config.count && failures < config.count { | |||
err = config.failpoint.Trigger(ctx, clus) | |||
if err != nil { | |||
fmt.Printf("Failed to trigger failpoint %q, err: %v\n", config.failpoint.Name(), err) | |||
t.Logf("Failed to trigger failpoint %q, err: %v\n", config.failpoint.Name(), err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to pass t *testing.T
to the function.
8dd68c2
to
bc848d5
Compare
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
bc848d5
to
219278b
Compare
ping @ahrtr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @serathius
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.