Skip to content

Commit 46afedd

Browse files
committed
Fix tests due to null stream transport passed to StubbableTransport
Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com>
1 parent f0d0c75 commit 46afedd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/src/main/java/org/opensearch/test/transport/MockTransportService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public MockTransportService(
265265
this(
266266
settings,
267267
new StubbableTransport(transport),
268-
new StubbableTransport(streamTransport),
268+
streamTransport != null ? new StubbableTransport(streamTransport) : null,
269269
threadPool,
270270
interceptor,
271271
localNodeFactory,

0 commit comments

Comments
 (0)