We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca030e3 commit efb53afCopy full SHA for efb53af
logging/spec/sample_spec.rb
@@ -137,10 +137,14 @@ def cleanup!
137
allow(@logging).to receive(:entries).
138
with(filter: %{resource.type = "gae_app"}).
139
and_wrap_original do |m, *args|
140
- m.call(
141
- filter: %{logName = "#{my_application_log_name}"},
142
- order: "timestamp desc"
143
- )
+ entries = []
+
+ wait_until {
+ entries = m.call(filter: %Q{logName="#{my_application_log_name}"})
144
+ entries.any?
145
+ }
146
147
+ entries
148
end
149
150
timestamp = "\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2} [^\\\\]+"
0 commit comments