Skip to content

Commit c1fe27b

Browse files
authored
Fix the noignore status for cluster startup. (project-chip#42151)
1 parent 5d75611 commit c1fe27b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/app/clusters/boolean-state-configuration-server/tests/TestBooleanStateConfigurationCluster.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ TEST_F(TestBooleanStateConfigurationCluster, TestSensitivityClamping)
281281
auto config = DefaultConfig().WithSupportedSensitivityLevels(10);
282282
BooleanStateConfigurationCluster cluster(kTestEndpointId, Feature::kSensitivityLevel, {}, config);
283283
ClusterTester tester(cluster);
284-
cluster.Startup(context.Get());
284+
ASSERT_EQ(cluster.Startup(context.Get()), CHIP_NO_ERROR);
285285

286286
uint8_t currentLevel = 0;
287287

@@ -314,7 +314,7 @@ TEST_F(TestBooleanStateConfigurationCluster, TestPersistenceAndStartup)
314314
auto config = DefaultConfig().WithSupportedSensitivityLevels(9);
315315

316316
BooleanStateConfigurationCluster cluster(kTestEndpointId, Feature::kSensitivityLevel, {}, config);
317-
cluster.Startup(context.Get());
317+
ASSERT_EQ(cluster.Startup(context.Get()), CHIP_NO_ERROR);
318318
ClusterTester tester(cluster);
319319

320320
// check default value first
@@ -335,7 +335,7 @@ TEST_F(TestBooleanStateConfigurationCluster, TestPersistenceAndStartup)
335335
auto config = DefaultConfig().WithSupportedSensitivityLevels(9);
336336

337337
BooleanStateConfigurationCluster cluster(kTestEndpointId, Feature::kSensitivityLevel, {}, config);
338-
cluster.Startup(context.Get());
338+
ASSERT_EQ(cluster.Startup(context.Get()), CHIP_NO_ERROR);
339339
ClusterTester tester(cluster);
340340
uint8_t sensitivity = 0;
341341
EXPECT_EQ(tester.ReadAttribute(Attributes::CurrentSensitivityLevel::Id, sensitivity),
@@ -351,7 +351,7 @@ TEST_F(TestBooleanStateConfigurationCluster, TestPersistenceAndStartup)
351351
// Default sensitivity for this config is 3.
352352

353353
BooleanStateConfigurationCluster cluster(kTestEndpointId, Feature::kSensitivityLevel, {}, smallerConfig);
354-
cluster.Startup(context.Get()); // Should read 6 and clamp it to (max - 1 == 4)
354+
ASSERT_EQ(cluster.Startup(context.Get()), CHIP_NO_ERROR); // Should read 6 and clamp it to (max - 1 == 4)
355355

356356
ClusterTester tester(cluster);
357357
uint8_t sensitivity = 0;
@@ -368,7 +368,7 @@ TEST_F(TestBooleanStateConfigurationCluster, TestPersistenceAndStartup)
368368
auto config = DefaultConfig().WithSupportedSensitivityLevels(9).WithDefaultSensitivityLevel(5);
369369

370370
BooleanStateConfigurationCluster cluster(kTestEndpointId, Feature::kSensitivityLevel, {}, config);
371-
cluster.Startup(context.Get());
371+
ASSERT_EQ(cluster.Startup(context.Get()), CHIP_NO_ERROR);
372372
ClusterTester tester(cluster);
373373

374374
uint8_t sensitivity = 0;
@@ -391,7 +391,7 @@ TEST_F(TestBooleanStateConfigurationCluster, TestAlarmsEnabledPersistence)
391391
kTestEndpointId, { Feature::kVisual, Feature::kAudible },
392392
{ BooleanStateConfigurationCluster::OptionalAttributesSet().Set<Attributes::AlarmsEnabled::Id>() }, config);
393393

394-
cluster.Startup(context.Get());
394+
ASSERT_EQ(cluster.Startup(context.Get()), CHIP_NO_ERROR);
395395
ClusterTester tester(cluster);
396396

397397
// Check default value first
@@ -419,7 +419,7 @@ TEST_F(TestBooleanStateConfigurationCluster, TestAlarmsEnabledPersistence)
419419
BooleanStateConfigurationCluster cluster(
420420
kTestEndpointId, { Feature::kVisual, Feature::kAudible },
421421
{ BooleanStateConfigurationCluster::OptionalAttributesSet().Set<Attributes::AlarmsEnabled::Id>() }, config);
422-
cluster.Startup(context.Get());
422+
ASSERT_EQ(cluster.Startup(context.Get()), CHIP_NO_ERROR);
423423
ClusterTester tester(cluster);
424424

425425
BooleanStateConfigurationCluster::AlarmModeBitMask alarmsEnabled;
@@ -436,7 +436,7 @@ TEST_F(TestBooleanStateConfigurationCluster, TestAlarmsEnabledPersistence)
436436
BooleanStateConfigurationCluster cluster(
437437
kTestEndpointId, { Feature::kVisual, Feature::kAudible },
438438
{ BooleanStateConfigurationCluster::OptionalAttributesSet().Set<Attributes::AlarmsEnabled::Id>() }, config);
439-
cluster.Startup(context.Get());
439+
ASSERT_EQ(cluster.Startup(context.Get()), CHIP_NO_ERROR);
440440
ClusterTester tester(cluster);
441441

442442
BooleanStateConfigurationCluster::AlarmModeBitMask alarmsEnabled;

0 commit comments

Comments
 (0)