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

Function testConnLeaveGroupErr

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

Source from the content-addressed store, hash-verified

815}
816
817func testConnLeaveGroupErr(t *testing.T, conn *Conn) {
818 groupID := makeGroupID()
819 waitForCoordinator(t, conn, groupID)
820
821 _, err := conn.leaveGroup(leaveGroupRequestV0{
822 GroupID: groupID,
823 })
824 if !errors.Is(err, UnknownMemberId) && !errors.Is(err, NotCoordinatorForGroup) {
825 t.Fatalf("expected %v or %v; got %v", UnknownMemberId, NotCoordinatorForGroup, err)
826 }
827}
828
829func testConnSyncGroupErr(t *testing.T, conn *Conn) {
830 groupID := makeGroupID()

Callers

nothing calls this directly

Calls 3

makeGroupIDFunction · 0.85
waitForCoordinatorFunction · 0.85
leaveGroupMethod · 0.65

Tested by

no test coverage detected