Skip to content

Commit 0a17905

Browse files
author
Frank Natividad
committed
Removed order from filter. Using full project path
1 parent 73b620b commit 0a17905

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

logging/spec/quickstart_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def wait_until times: 5, delay: 1, &condition
3030
@gcloud = Google::Cloud.new ENV["GOOGLE_CLOUD_PROJECT"]
3131
@logging = @gcloud.logging
3232
@entry = @logging.entry
33-
@log_name = "quickstart_log_#{Time.now.to_i}"
33+
@log_name = "projects/#{ENV["GOOGLE_CLOUD_PROJECT"]}/logs/" +
34+
"quickstart_log_#{Time.now.to_i}"
3435

3536
@entry.log_name = @log_name
3637
end
@@ -43,7 +44,7 @@ def wait_until times: 5, delay: 1, &condition
4344
end
4445

4546
def test_log_entries
46-
@logging.entries filter: %Q{logName:"#{@log_name}"}, order: "timestamp desc"
47+
@logging.entries filter: %Q{logName="#{@log_name}"}
4748
end
4849

4950
it "logs a new entry" do

0 commit comments

Comments
 (0)