mirror of
https://github.com/farseer-go/eventBus.git
synced 2025-12-24 13:37:51 +08:00
13 lines
263 B
Go
13 lines
263 B
Go
package test
|
|
|
|
import (
|
|
"github.com/farseer-go/eventBus"
|
|
"github.com/stretchr/testify/assert"
|
|
"testing"
|
|
)
|
|
|
|
func TestPanic(t *testing.T) {
|
|
assert.Error(t, eventBus.PublishEvent("testPanic", nil))
|
|
assert.Error(t, eventBus.PublishEventAsync("testPanic", nil))
|
|
}
|