mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-04 01:54:28 +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 })
|
||
|
}
|