MCPcopy
hub / github.com/segmentio/kafka-go / testConnHeartbeatErr

Function testConnHeartbeatErr

conn_test.go:805–815  ·  view source on GitHub ↗
(t *testing.T, conn *Conn)

Source from the content-addressed store, hash-verified

803}
804
805func testConnHeartbeatErr(t *testing.T, conn *Conn) {
806 groupID := makeGroupID()
807 createGroup(t, conn, groupID)
808
809 _, err := conn.syncGroup(syncGroupRequestV0{
810 GroupID: groupID,
811 })
812 if !errors.Is(err, UnknownMemberId) && !errors.Is(err, NotCoordinatorForGroup) {
813 t.Fatalf("expected %v or %v; got %v", UnknownMemberId, NotCoordinatorForGroup, err)
814 }
815}
816
817func testConnLeaveGroupErr(t *testing.T, conn *Conn) {
818 groupID := makeGroupID()

Callers

nothing calls this directly

Calls 3

makeGroupIDFunction · 0.85
createGroupFunction · 0.85
syncGroupMethod · 0.65

Tested by

no test coverage detected