diff --git a/go.mod b/go.mod index 6a9f827250564..75ce97ec05761 100644 --- a/go.mod +++ b/go.mod @@ -142,7 +142,7 @@ require ( github.com/thanos-io/objstore v0.0.0-20241015070247-5f04b8b0b52a github.com/twmb/franz-go v1.17.1 github.com/twmb/franz-go/pkg/kadm v1.13.0 - github.com/twmb/franz-go/pkg/kfake v0.0.0-20240821035758-b77dd13e2bfa + github.com/twmb/franz-go/pkg/kfake v0.0.0-20241015013301-cea7aa5d8037 github.com/twmb/franz-go/pkg/kmsg v1.8.0 github.com/twmb/franz-go/plugin/kotel v1.5.0 github.com/twmb/franz-go/plugin/kprom v1.1.0 diff --git a/go.sum b/go.sum index c4be2fc1151b3..c47d356cc10d3 100644 --- a/go.sum +++ b/go.sum @@ -1831,8 +1831,8 @@ github.com/twmb/franz-go v1.17.1 h1:0LwPsbbJeJ9R91DPUHSEd4su82WJWcTY1Zzbgbg4CeQ= github.com/twmb/franz-go v1.17.1/go.mod h1:NreRdJ2F7dziDY/m6VyspWd6sNxHKXdMZI42UfQ3GXM= github.com/twmb/franz-go/pkg/kadm v1.13.0 h1:bJq4C2ZikUE2jh/wl9MtMTQ/kpmnBgVFh8XMQBEC+60= github.com/twmb/franz-go/pkg/kadm v1.13.0/go.mod h1:VMvpfjz/szpH9WB+vGM+rteTzVv0djyHFimci9qm2C0= -github.com/twmb/franz-go/pkg/kfake v0.0.0-20240821035758-b77dd13e2bfa h1:OmQ4DJhqeOPdIH60Psut1vYU8A6LGyxJbF09w5RAa2w= -github.com/twmb/franz-go/pkg/kfake v0.0.0-20240821035758-b77dd13e2bfa/go.mod h1:nkBI/wGFp7t1NJnnCeJdS4sX5atPAqwCPpDXKuI7SC8= +github.com/twmb/franz-go/pkg/kfake v0.0.0-20241015013301-cea7aa5d8037 h1:M4Zj79q1OdZusy/Q8TOTttvx/oHkDVY7sc0xDyRnwWs= +github.com/twmb/franz-go/pkg/kfake v0.0.0-20241015013301-cea7aa5d8037/go.mod h1:nkBI/wGFp7t1NJnnCeJdS4sX5atPAqwCPpDXKuI7SC8= github.com/twmb/franz-go/pkg/kmsg v1.8.0 h1:lAQB9Z3aMrIP9qF9288XcFf/ccaSxEitNA1CDTEIeTA= github.com/twmb/franz-go/pkg/kmsg v1.8.0/go.mod h1:HzYEb8G3uu5XevZbtU0dVbkphaKTHk0X68N5ka4q6mU= github.com/twmb/franz-go/plugin/kotel v1.5.0 h1:TiPfGUbQK384OO7ZYGdo7JuPCbJn+/8njQ/D9Je9CDE= diff --git a/vendor/github.com/twmb/franz-go/pkg/kfake/data.go b/vendor/github.com/twmb/franz-go/pkg/kfake/data.go index 9f5d46c6b8687..566d51b69560b 100644 --- a/vendor/github.com/twmb/franz-go/pkg/kfake/data.go +++ b/vendor/github.com/twmb/franz-go/pkg/kfake/data.go @@ -92,7 +92,9 @@ func (d *data) mkt(t string, nparts int, nreplicas int, configs map[string]*stri d.id2t[id] = t d.t2id[t] = id d.treplicas[t] = nreplicas - d.tcfgs[t] = configs + if configs != nil { + d.tcfgs[t] = configs + } for i := 0; i < nparts; i++ { d.tps.mkp(t, int32(i), d.c.newPartData) } diff --git a/vendor/modules.txt b/vendor/modules.txt index d30a86aa29e7b..5c2359b42266b 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1627,7 +1627,7 @@ github.com/twmb/franz-go/pkg/sasl/plain # github.com/twmb/franz-go/pkg/kadm v1.13.0 ## explicit; go 1.21 github.com/twmb/franz-go/pkg/kadm -# github.com/twmb/franz-go/pkg/kfake v0.0.0-20240821035758-b77dd13e2bfa +# github.com/twmb/franz-go/pkg/kfake v0.0.0-20241015013301-cea7aa5d8037 ## explicit; go 1.21 github.com/twmb/franz-go/pkg/kfake # github.com/twmb/franz-go/pkg/kmsg v1.8.0