mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-28 22:57:16 +00:00
16 lines
298 B
Go
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 })
|
|
}
|