Fix unit tests
This commit is contained in:
@@ -9,7 +9,7 @@ class CMockClient
|
|||||||
private:
|
private:
|
||||||
const std::string SUCESS_RESPONSE_JSON = "HTTP/1.1 200 OK\r\nConnection: close\r\nContent-Length: {ContentLength}\r\nContent-Type: application/json\r\n\r\n{Content}";
|
const std::string SUCESS_RESPONSE_JSON = "HTTP/1.1 200 OK\r\nConnection: close\r\nContent-Length: {ContentLength}\r\nContent-Type: application/json\r\n\r\n{Content}";
|
||||||
const std::string NOT_FOUND_RESPONSE = "HTTP/1.1 404 Not Found\r\nConnection: close\r\nContent-Length: 17\r\nContent-Type: application/json\r\n\r\n{\"message\":\"404\"}";
|
const std::string NOT_FOUND_RESPONSE = "HTTP/1.1 404 Not Found\r\nConnection: close\r\nContent-Length: 17\r\nContent-Type: application/json\r\n\r\n{\"message\":\"404\"}";
|
||||||
const std::string SERVER_VERSION_SUCCESS_CONTENT = "{\"version\": \"1.1.0\"}";
|
const std::string SERVER_VERSION_SUCCESS_CONTENT = "{\"version\": \"1.1.1\"}";
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CMockClient(SOCKET socket, std::function<void(CMockClient*)> removedCallback) :
|
CMockClient(SOCKET socket, std::function<void(CMockClient*)> removedCallback) :
|
||||||
|
@@ -3,7 +3,6 @@
|
|||||||
#include "UnitTestConfig.h"
|
#include "UnitTestConfig.h"
|
||||||
|
|
||||||
std::uint16_t Daemon::_iter = 0;
|
std::uint16_t Daemon::_iter = 0;
|
||||||
static const String SIA_PATH = L"..\\..\\..\\..\\3rd-party\\Sia-v1.1.0-windows-amd64";
|
|
||||||
|
|
||||||
Daemon::Daemon()
|
Daemon::Daemon()
|
||||||
{
|
{
|
||||||
|
@@ -17,6 +17,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
static std::uint16_t _iter;
|
static std::uint16_t _iter;
|
||||||
|
const String SIA_PATH = L"..\\..\\3rd-party\\Sia-v1.1.1-windows-amd64";
|
||||||
std::uint16_t _i;
|
std::uint16_t _i;
|
||||||
PROCESS_INFORMATION pi;
|
PROCESS_INFORMATION pi;
|
||||||
STARTUPINFO si;
|
STARTUPINFO si;
|
||||||
|
Reference in New Issue
Block a user