hpds_node/mq_test.go

17 lines
292 B
Go
Raw Normal View History

2022-10-12 11:55:36 +08:00
package hpds_node
import (
"github.com/stretchr/testify/assert"
"testing"
"time"
)
func TestMqRun(t *testing.T) {
mq := NewMqWithOptions("mq", WithMqAddr("localhost:9001"))
time.Sleep(time.Second)
assert.NotNil(t, mq)
err := mq.Close()
time.Sleep(time.Second)
assert.Nil(t, err)
}