From 91453dd3fc75c34d544e8455be0c805bf487716c Mon Sep 17 00:00:00 2001 From: Blake Erickson Date: Wed, 15 Sep 2021 18:03:08 -0600 Subject: [PATCH] DEV: Fix flaky site.json api test (#14351) The color_scheme_id needs to be an integer not a string. This is one of the failing tests that showed this error: https://github.com/discourse/discourse/runs/3598414971 It showed this error `POSSIBLE ISSUE W/: /user_themes/0/color_scheme_id` And this is part of the site.json response: ``` ... "user_themes"=>[{"theme_id"=>149, "name"=>"Cool theme 111", "default"=>false, "color_scheme_id"=>37}] ... ``` --- spec/requests/api/schemas/json/site_response.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/api/schemas/json/site_response.json b/spec/requests/api/schemas/json/site_response.json index bda5dad96a4..82ae9485d0c 100644 --- a/spec/requests/api/schemas/json/site_response.json +++ b/spec/requests/api/schemas/json/site_response.json @@ -382,7 +382,7 @@ }, "color_scheme_id": { "type": [ - "string", + "integer", "null" ] }