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

Function testConnSyncGroupErr

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

Source from the content-addressed store, hash-verified

827}
828
829func testConnSyncGroupErr(t *testing.T, conn *Conn) {
830 groupID := makeGroupID()
831 waitForCoordinator(t, conn, groupID)
832
833 _, err := conn.syncGroup(syncGroupRequestV0{
834 GroupID: groupID,
835 })
836 if !errors.Is(err, UnknownMemberId) && !errors.Is(err, NotCoordinatorForGroup) {
837 t.Fatalf("expected %v or %v; got %v", UnknownMemberId, NotCoordinatorForGroup, err)
838 }
839}
840
841func testConnListGroupsReturnsGroups(t *testing.T, conn *Conn) {
842 group1 := makeGroupID()

Callers

nothing calls this directly

Calls 3

makeGroupIDFunction · 0.85
waitForCoordinatorFunction · 0.85
syncGroupMethod · 0.65

Tested by

no test coverage detected