Decrease message buffer test payload size to avoid bad_alloc 17/279517/1
authorKonrad Lipinski <k.lipinski2@samsung.com>
Wed, 10 Aug 2022 15:23:54 +0000 (17:23 +0200)
committerKonrad Lipinski <k.lipinski2@samsung.com>
Wed, 10 Aug 2022 15:23:54 +0000 (17:23 +0200)
Change-Id: I24c1b17e5b8e8d224b7c8d47dbe0942467e528bf

test/test_message_buffer.cpp

index c9ff033..2ea5c97 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd. All rights reserved
  *
  * This file is licensed under the terms of MIT License or the Apache License
  * Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details.
@@ -119,7 +119,7 @@ NEGATIVE_TEST_CASE(T1201_messageBuffer_excessTrailingBytes)
 
     buffer.ModeInput();
 
-    constexpr size_t hugePayloadSize = 1000*1000*1000;
+    constexpr size_t hugePayloadSize = 1000*1000;
     size_t size = hugePayloadSize;
 
     BOOST_REQUIRE(buffer.Ptr());