Skip to content

Commit c66b987

Browse files
committed
fix(test): use t.Errorf instead of panic
1 parent d969873 commit c66b987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etcd/etcdv3_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ func setupTestStore(t *testing.T, log bool, opts []Opt) (store.BackendKeyer, *cl
502502

503503
backend, err := New(append([]Opt{WithClient(cli)}, opts...)...)
504504
if err != nil {
505-
panic(errors.Wrap(err, "OK"))
505+
t.Errorf("failed to create backend: %w", err)
506506
}
507507

508508
return backend, cli, func() { cluster.Terminate(t) }

0 commit comments

Comments
 (0)