Skip to content

Commit

Permalink
fix: Fixes the AllHostsLocatorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jnh5y committed Jan 26, 2022
1 parent a5bb05d commit 228b353
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.confluent.ksql.physical.scalablepush.locator;

import static org.apache.kafka.streams.state.internals.StreamsMetadataImpl.NOT_AVAILABLE;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.mockito.Mockito.when;
Expand Down Expand Up @@ -43,7 +44,7 @@ public void shouldLocate() throws MalformedURLException {
when(metadata1.getAllMetadata())
.thenReturn(ImmutableList.of(streamsMetadata1, streamsMetadata2));
when(metadata2.getAllMetadata())
.thenReturn(Collections.emptyList());
.thenReturn(ImmutableList.of(streamsMetadata3));
when(streamsMetadata1.hostInfo())
.thenReturn(new HostInfo("abc", 101), new HostInfo("localhost", 8088));
when(streamsMetadata2.hostInfo()).thenReturn(new HostInfo("localhost", 8088));
Expand Down

0 comments on commit 228b353

Please sign in to comment.