mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
rafttest: add _breakpoint directive
It is a helper case to attach a debugger to when a problem needs to be investigated in a longer test file. In such a case, add the following stanza immediately before the interesting behavior starts: _breakpoint: ---- ok and set a breakpoint on the _breakpoint case.
This commit is contained in:
parent
0fc108428e
commit
2c1a1d8c32
@ -30,6 +30,16 @@ func (env *InteractionEnv) Handle(t *testing.T, d datadriven.TestData) string {
|
|||||||
env.Output.Reset()
|
env.Output.Reset()
|
||||||
var err error
|
var err error
|
||||||
switch d.Cmd {
|
switch d.Cmd {
|
||||||
|
case "_breakpoint":
|
||||||
|
// This is a helper case to attach a debugger to when a problem needs
|
||||||
|
// to be investigated in a longer test file. In such a case, add the
|
||||||
|
// following stanza immediately before the interesting behavior starts:
|
||||||
|
//
|
||||||
|
// _breakpoint:
|
||||||
|
// ----
|
||||||
|
// ok
|
||||||
|
//
|
||||||
|
// and set a breakpoint on the `case` above.
|
||||||
case "add-nodes":
|
case "add-nodes":
|
||||||
// Example:
|
// Example:
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user