Skip to content

Commit 54af6b8

Browse files
committed
Add comment why we're still skipping the spec.
1 parent 0136b66 commit 54af6b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/datadog/tracing/contrib/mongodb/client_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@
105105
end
106106
end
107107

108+
# Our GHA Unit Tests run in docker containers, where "localhost" refers to the container itself.
109+
# As a result, the secondary client (with host "localhost") cannot connect to the primary MongoDB
110+
# service, causing the test to timeout while waiting for "primary server [to be] available in cluster".
111+
# One solution is to pull a second MongoDB service and set the secondary client accordingly. However,
112+
# given the large amount of services already being pulled, this spec remains skipped on GHA for now.
108113
context 'secondary client', skip: ENV['BATCHED_TASKS'] do
109114
around do |example|
110115
without_warnings do

0 commit comments

Comments
 (0)