test: fix stream node panic caused by ctx canceled (#44285)

issue: #44284

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
wei liu 2025-09-09 20:41:56 +08:00 committed by GitHub
parent dfc2335144
commit 0cb262e1fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1056,6 +1056,12 @@ func TestProxy(t *testing.T) {
fmt.Println(len(a))
// HINT: the order of stopping service refers to the `roles.go` file
log.Info("start to stop the services")
{
err := sn.Stop()
assert.NoError(t, err)
log.Info("stop StreamingNode")
}
{
err := mix.Stop()
assert.NoError(t, err)