@@ -276,52 +276,52 @@ URM_TEST(PropertyParsingTests, {
276276 {
277277 std::string resultBuffer;
278278
279- int8_t propFound = submitPropGetRequest (" test.debug.enabled" , resultBuffer, " false" );
279+ size_t bytesWritten = submitPropGetRequest (" test.debug.enabled" , resultBuffer, " false" );
280280
281- E_ASSERT ((propFound == true ));
281+ E_ASSERT ((bytesWritten > 0 ));
282282 E_ASSERT ((strcmp (resultBuffer.c_str (), " true" ) == 0 ));
283283 }
284284
285285 {
286286 std::string resultBuffer;
287287
288- int8_t propFound = submitPropGetRequest (" test.current.worker_thread.count" , resultBuffer, " false" );
288+ size_t bytesWritten = submitPropGetRequest (" test.current.worker_thread.count" , resultBuffer, " false" );
289289
290- E_ASSERT ((propFound == true ));
290+ E_ASSERT ((bytesWritten > 0 ));
291291 E_ASSERT ((strcmp (resultBuffer.c_str (), " 125" ) == 0 ));
292292 }
293293
294294 {
295295 std::string resultBuffer;
296296
297- int8_t propFound = submitPropGetRequest (" test.historic.worker_thread.count" , resultBuffer, " 5" );
297+ size_t bytesWritten = submitPropGetRequest (" test.historic.worker_thread.count" , resultBuffer, " 5" );
298298
299- E_ASSERT ((propFound == false ));
299+ E_ASSERT ((bytesWritten == 0 ));
300300 E_ASSERT ((strcmp (resultBuffer.c_str (), " 5" ) == 0 ));
301301 }
302302
303303 {
304304 std::thread th1 ([&]{
305305 std::string resultBuffer;
306- int8_t propFound = submitPropGetRequest (" test.current.worker_thread.count" , resultBuffer, " false" );
306+ size_t bytesWritten = submitPropGetRequest (" test.current.worker_thread.count" , resultBuffer, " false" );
307307
308- E_ASSERT ((propFound == true ));
308+ E_ASSERT ((bytesWritten > 0 ));
309309 E_ASSERT ((strcmp (resultBuffer.c_str (), " 125" ) == 0 ));
310310 });
311311
312312 std::thread th2 ([&]{
313313 std::string resultBuffer;
314- int8_t propFound = submitPropGetRequest (" test.debug.enabled" , resultBuffer, " false" );
314+ size_t bytesWritten = submitPropGetRequest (" test.debug.enabled" , resultBuffer, " false" );
315315
316- E_ASSERT ((propFound == true ));
316+ E_ASSERT ((bytesWritten > 0 ));
317317 E_ASSERT ((strcmp (resultBuffer.c_str (), " true" ) == 0 ));
318318 });
319319
320320 std::thread th3 ([&]{
321321 std::string resultBuffer;
322- int8_t propFound = submitPropGetRequest (" test.doc.build.mode.enabled" , resultBuffer, " false" );
322+ size_t bytesWritten = submitPropGetRequest (" test.doc.build.mode.enabled" , resultBuffer, " false" );
323323
324- E_ASSERT ((propFound == true ));
324+ E_ASSERT ((bytesWritten > 0 ));
325325 E_ASSERT ((strcmp (resultBuffer.c_str (), " false" ) == 0 ));
326326 });
327327
0 commit comments