EXPECT_THAT(called, testing::Eq(false));
ret = preference_set_int("test1", 1);
- while (g_main_context_iteration(g_main_context_default(), false));
+ while (g_main_context_iteration(g_main_context_default(), true));
EXPECT_THAT(ret, testing::Eq(PREFERENCE_ERROR_NONE));
EXPECT_THAT(called, testing::Eq(true));
EXPECT_THAT(ret, testing::Eq(PREFERENCE_ERROR_NONE));
ret = preference_set_int("test1", 1);
- while (g_main_context_iteration(g_main_context_default(), false));
+ while (g_main_context_iteration(g_main_context_default(), true));
EXPECT_THAT(ret, testing::Eq(PREFERENCE_ERROR_NONE));
EXPECT_THAT(called, testing::Eq(false));