erigon-pulse/ethdb/mdbx/msgfunc_test.go
2020-10-28 10:18:10 +07:00

16 lines
298 B
Go

package mdbx
import "testing"
func TestMsgctx_conflict(t *testing.T) {
ctx := nextctx()
ctx.register(func(string) error { return nil })
defer func() {
ctx.deregister()
if e := recover(); e == nil {
t.Errorf("expeceted panic")
}
}()
ctx.register(func(string) error { return nil })
}