Skip to content

Commit 500221c

Browse files
committed
Fix kvstore-static_tests failing with OOM
Forked 3 threads plus misc, so minimum (4 * OS_STACK_SIZE) heap are required.
1 parent a6c316a commit 500221c

File tree

1 file changed

+2
-1
lines changed
  • features/storage/TESTS/kvstore/static_tests

1 file changed

+2
-1
lines changed

features/storage/TESTS/kvstore/static_tests/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ static const size_t buffer_size = 20;
3434
static const int num_of_threads = 3;
3535
static const char num_of_keys = 3;
3636

37-
static const int heap_alloc_threshold_size = 4096;
37+
/* Forked 3 threads plus misc, so minimum (4 * OS_STACK_SIZE) heap are required. */
38+
static const int heap_alloc_threshold_size = 4 * OS_STACK_SIZE;
3839

3940
static const char *keys[] = {"key1", "key2", "key3"};
4041

0 commit comments

Comments
 (0)