mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-04 01:42:15 +08:00
issue: #33285 - implement producing and consuming server of message - implement management operation for streaming node server --------- Signed-off-by: chyezh <chyezh@outlook.com>
23 lines
437 B
Go
23 lines
437 B
Go
package helper
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/milvus-io/milvus/pkg/streaming/util/types"
|
|
"github.com/milvus-io/milvus/pkg/streaming/walimpls"
|
|
)
|
|
|
|
func TestWALHelper(t *testing.T) {
|
|
h := NewWALHelper(&walimpls.OpenOption{
|
|
Channel: types.PChannelInfo{
|
|
Name: "test",
|
|
Term: 1,
|
|
},
|
|
})
|
|
assert.NotNil(t, h.Channel())
|
|
assert.Equal(t, h.Channel().Name, "test")
|
|
assert.NotNil(t, h.Log())
|
|
}
|