Skip to content

Commit 0f7ef90

Browse files
Mark Soderquistnebhale
authored andcommitted
Test Should Not Assume No BOSH DNS
This change updates a test so that it no longer assumes that it's running in a scenario that doesn't have BOSH DNS. [resolves #804] Signed-off-by: Ben Hale <[email protected]>
1 parent aa94d38 commit 0f7ef90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/java_buildpack/jre/open_jdk_like_jre_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
it 'does not disable dns caching if no BOSH DNS',
5757
cache_fixture: 'stub-java.tar.gz' do
5858

59+
allow_any_instance_of(Resolv::DNS::Config).to receive(:nameserver_port).and_return([['8.8.8.8', 53]])
60+
5961
component.detect
6062
component.compile
6163

0 commit comments

Comments
 (0)