Skip to content

Commit

Permalink
Increase stack sizes for fibers test
Browse files Browse the repository at this point in the history
Reviewed By: yfeldblum

Differential Revision: D67801759

fbshipit-source-id: c8da89ea5fb8e5f4b12e17c3362618d3b3e3eaed
  • Loading branch information
MatzeB authored and facebook-github-bot committed Jan 6, 2025
1 parent 7828768 commit d6b783c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions folly/fibers/test/FibersTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1763,7 +1763,7 @@ TEST(FiberManager, nestedFiberManagersSameEvb) {

// Use frozen options
FiberManager::Options used;
used.stackSize = 1024;
used.stackSize = 2048;
FiberManager::FrozenOptions options{used};
auto& fm2 = getFiberManager(evb, options);
EXPECT_NE(&fm1, &fm2);
Expand All @@ -1772,12 +1772,12 @@ TEST(FiberManager, nestedFiberManagersSameEvb) {
EXPECT_EQ(&fm2, &getFiberManager(evb, options));
EXPECT_EQ(&fm2, &getFiberManager(evb, FiberManager::FrozenOptions{used}));
FiberManager::Options same;
same.stackSize = 1024;
same.stackSize = 2048;
EXPECT_EQ(&fm2, &getFiberManager(evb, FiberManager::FrozenOptions{same}));

// Different option
FiberManager::Options differ;
differ.stackSize = 2048;
differ.stackSize = 4096;
auto& fm3 = getFiberManager(evb, FiberManager::FrozenOptions{differ});
EXPECT_NE(&fm1, &fm3);
EXPECT_NE(&fm2, &fm3);
Expand Down

0 comments on commit d6b783c

Please sign in to comment.