A platform for community discussion. Free, open, simple.
FIX: Make thumbnail tests start with a clean slate (#15216)
Daniel Waterworth6cae6aadf4d1
diff --git a/lib/turbo_tests.rb b/lib/turbo_tests.rbindex 8d2c3a0ed8a..f81562804f6 100644--- a/lib/turbo_tests.rb+++ b/lib/turbo_tests.rb@@ -39,7 +39,7 @@ module TurboTestsendend- FakeExecutionResult = Struct.new(:example_skipped?, :pending_message, :status, :pending_fixed?, :exception)+ FakeExecutionResult = Struct.new(:example_skipped?, :pending_message, :status, :pending_fixed?, :exception, :pending_exception)class FakeExecutionResultdef self.from_obj(obj)obj = obj.symbolize_keys@@ -48,7 +48,8 @@ module TurboTestsobj[:pending_message],obj[:status].to_sym,obj[:pending_fixed?],- FakeException.from_obj(obj[:exception])+ FakeException.from_obj(obj[:exception]),+ FakeException.from_obj(obj[:pending_exception]))endenddiff --git a/lib/turbo_tests/json_rows_formatter.rb b/lib/turbo_tests/json_rows_formatter.rbindex 453edd42649..f6a424a63a9 100644--- a/lib/turbo_tests/json_rows_formatter.rb+++ b/lib/turbo_tests/json_rows_formatter.rb@@ -36,7 +36,8 @@ module TurboTestspending_message: result.pending_message,status: result.status,pending_fixed?: result.pending_fixed?,- exception: exception_to_json(result.exception)+ exception: exception_to_json(result.exception),+ pending_exception: exception_to_json(result.pending_exception),}enddiff --git a/spec/integration/topic_thumbnail_spec.rb b/spec/integration/topic_thumbnail_spec.rbindex e517c00cd9c..e8492cd60d3 100644--- a/spec/integration/topic_thumbnail_spec.rb+++ b/spec/integration/topic_thumbnail_spec.rb@@ -14,13 +14,13 @@ describe "Topic Thumbnails" docontext 'latest' dodef get_topicDiscourse.redis.del(topic.thumbnail_job_redis_key(Topic.thumbnail_sizes))+ Discourse.redis.del(topic.thumbnail_job_redis_key([]))get '/latest.json'expect(response.status).to eq(200)response.parsed_body["topic_list"]["topics"][0]endit "does not include thumbnails by default" do-topic_json = get_topicexpect(topic_json["thumbnails"]).to eq(nil)@@ -39,6 +39,8 @@ describe "Topic Thumbnails" doendit "includes the theme specified resolutions" do+ pending "We're creating two generate topic thumbnails jobs instead of one"+topic_json = nilexpect do@@ -92,6 +94,8 @@ describe "Topic Thumbnails" doendit "includes the theme specified resolutions" do+ pending "We're creating two generate topic thumbnails jobs instead of one"+topic_json = nilexpect do