30 lines
468 B
Go
30 lines
468 B
Go
|
package memory
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
busTesting "forge.cadoles.com/arcad/edge/pkg/bus/testing"
|
||
|
)
|
||
|
|
||
|
func TestMemoryBus(t *testing.T) {
|
||
|
if testing.Short() {
|
||
|
t.Skip("Test disabled when -short flag is set")
|
||
|
}
|
||
|
|
||
|
t.Parallel()
|
||
|
|
||
|
t.Run("PublishSubscribe", func(t *testing.T) {
|
||
|
t.Parallel()
|
||
|
|
||
|
b := NewBus()
|
||
|
busTesting.TestPublishSubscribe(t, b)
|
||
|
})
|
||
|
|
||
|
t.Run("RequestReply", func(t *testing.T) {
|
||
|
t.Parallel()
|
||
|
|
||
|
b := NewBus()
|
||
|
busTesting.TestRequestReply(t, b)
|
||
|
})
|
||
|
}
|