Make tests more platform agnostic (#4650)
Use QTemporaryDir to create the test directory Add option to use httpbin over local docker Increase delay for opening a connection Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -12,8 +12,11 @@ using namespace chatterino;
|
||||
|
||||
namespace {
|
||||
|
||||
// Change to http://httpbin.org if you don't want to run the docker image yourself to test this
|
||||
#ifdef CHATTERINO_TEST_USE_PUBLIC_HTTPBIN
|
||||
const char *const HTTPBIN_BASE_URL = "http://httpbin.org";
|
||||
#else
|
||||
const char *const HTTPBIN_BASE_URL = "http://127.0.0.1:9051";
|
||||
#endif
|
||||
|
||||
QString getStatusURL(int code)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user