Browse Source

tests: align ApiVersions test expectations with advertised ranges (ListOffsets v0-2, Fetch v0-7)

pull/7231/head
chrislu 2 months ago
parent
commit
4e4e3ce1a8
  1. 8
      weed/mq/kafka/protocol/handler_test.go

8
weed/mq/kafka/protocol/handler_test.go

@ -142,8 +142,8 @@ func TestHandler_ApiVersions(t *testing.T) {
if minVersion3 != 0 { if minVersion3 != 0 {
t.Errorf("expected min version 0, got: %d", minVersion3) t.Errorf("expected min version 0, got: %d", minVersion3)
} }
if maxVersion3 != 5 {
t.Errorf("expected max version 5, got: %d", maxVersion3)
if maxVersion3 != 2 {
t.Errorf("expected max version 2, got: %d", maxVersion3)
} }
// Fourth API key (CreateTopics) // Fourth API key (CreateTopics)
@ -202,8 +202,8 @@ func TestHandler_ApiVersions(t *testing.T) {
if minVersion7 != 0 { if minVersion7 != 0 {
t.Errorf("expected min version 0, got: %d", minVersion7) t.Errorf("expected min version 0, got: %d", minVersion7)
} }
if maxVersion7 != 11 {
t.Errorf("expected max version 11, got: %d", maxVersion7)
if maxVersion7 != 7 {
t.Errorf("expected max version 7, got: %d", maxVersion7)
} }
// Close client to end handler // Close client to end handler

Loading…
Cancel
Save