erigon-pulse/ethdb/mdbx/msgfunc_test.go

16 lines
298 B
Go
Raw Normal View History

2020-10-28 03:18:10 +00:00
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 })
}