mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 09:38:39 +08:00
issue: #33285 - use reader but not consumer for pulsar - advanced test framework - move some streaming related package into pkg --------- Signed-off-by: chyezh <chyezh@outlook.com>
24 lines
461 B
Go
24 lines
461 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,
|
|
ServerID: 1,
|
|
},
|
|
})
|
|
assert.NotNil(t, h.Channel())
|
|
assert.Equal(t, h.Channel().Name, "test")
|
|
assert.NotNil(t, h.Log())
|
|
}
|