Skip to content

Commit 7ff8d56

Browse files
committed
Skip the plugins test case when statically linked
1 parent 23e59f1 commit 7ff8d56

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

kafka/config_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ func TestConfigMapAPIs(t *testing.T) {
127127

128128
// Test that plugins will always be configured before their config options
129129
func TestConfigPluginPaths(t *testing.T) {
130+
if LibrdkafkaLinkInfo != "dynamically linked to librdkafka" {
131+
// Best practice is to use dynamic linking if
132+
// librdkafka plugins are used,
133+
// as otherwise the statically linked version of librdkafka
134+
// needs to correspond to the dynamically linked one.
135+
t.Skip("Skipping test when statically linked")
136+
}
137+
130138
config := &ConfigMap{
131139
"plugin.library.paths": "monitoring-interceptor",
132140
}

0 commit comments

Comments
 (0)