Skip to content

Commit 4881ae7

Browse files
author
Frank Natividad
committed
Modified expectation to attempt to fix Travis CI
1 parent a450c94 commit 4881ae7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

logging/spec/quickstart_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ def wait_until times: 5, delay: 1, &condition
4848
and_return(@gcloud)
4949
expect(@gcloud).to receive(:logging).and_return(@logging)
5050
expect(@logging).to receive(:entry).and_return(@entry)
51-
expect(@entry).to receive(:log_name) { @log_name }
51+
allow(@entry).to receive(:log_name).and_wrap_original do |entry|
52+
@log_name
53+
end
5254
expect(@logging.entries(filter: entry_filter)).to be_empty
5355

5456
expect {
@@ -57,6 +59,7 @@ def wait_until times: 5, delay: 1, &condition
5759
"Logged Hello, world!\n"
5860
).to_stdout
5961

62+
expect(@entry.log_name).to eq @log_name
6063
wait_until(delay: 5) do
6164
@logging.entries(filter: entry_filter).any?
6265
end

0 commit comments

Comments
 (0)