File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages/plugins/minos-broker-kafka/tests/test_kafka Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ def test_constructor(self):
3333
3434 expected = {
3535 "group_id" : config .get_name (),
36- "broker_host " : common_config ["host" ],
37- "broker_port " : common_config ["port" ],
36+ "host " : common_config ["host" ],
37+ "port " : common_config ["port" ],
3838 }
3939 self .assertEqual (expected , mixin .kwargs )
4040
Original file line number Diff line number Diff line change @@ -136,8 +136,8 @@ def test_with_config(self):
136136
137137 expected = {
138138 "group_id" : self .config .get_name (),
139- "broker_host " : common_config ["host" ],
140- "broker_port " : common_config ["port" ],
139+ "host " : common_config ["host" ],
140+ "port " : common_config ["port" ],
141141 }
142142 self .assertEqual (expected , builder .kwargs )
143143
@@ -147,8 +147,8 @@ def test_build(self):
147147 publisher = builder .build ()
148148
149149 self .assertIsInstance (publisher , KafkaBrokerPublisher )
150- self .assertEqual (common_config ["host" ], publisher .broker_host )
151- self .assertEqual (common_config ["port" ], publisher .broker_port )
150+ self .assertEqual (common_config ["host" ], publisher .host )
151+ self .assertEqual (common_config ["port" ], publisher .port )
152152
153153
154154class TestPostgreSqlQueuedKafkaBrokerPublisher (unittest .IsolatedAsyncioTestCase ):
You can’t perform that action at this time.
0 commit comments