diff --git a/src/app/tests/suites/OperationalCredentialsCluster.yaml b/src/app/tests/suites/OperationalCredentialsCluster.yaml index 3931aef5c52c94..cf6431c8bced57 100644 --- a/src/app/tests/suites/OperationalCredentialsCluster.yaml +++ b/src/app/tests/suites/OperationalCredentialsCluster.yaml @@ -25,7 +25,7 @@ tests: response: constraints: type: uint8 - minValue: 5 + minValue: 4 maxValue: 255 - label: "Read number of commissioned fabrics" diff --git a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m index 30cb6817493998..19a2a84fc05d4b 100644 --- a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m +++ b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m @@ -5132,7 +5132,7 @@ - (void)testSendClusterOperationalCredentialsCluster_000000_ReadAttribute NSLog(@"Read number of supported fabrics Error: %@", err); XCTAssertEqual(err.code, 0); - XCTAssertGreaterThanOrEqual([values[@"value"] unsignedCharValue], 5); + XCTAssertGreaterThanOrEqual([values[@"value"] unsignedCharValue], 4); XCTAssertLessThanOrEqual([values[@"value"] unsignedCharValue], 255); [expectation fulfill]; }]; diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 175215c1934d46..84f2e3ddb405a4 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -19511,9 +19511,9 @@ class OperationalCredentialsCluster : public TestCommand ChipLogError(chipTool, "Warning: supportedFabrics type checking is not implemented yet. Expected type: '%s'", "uint8"); - if (supportedFabrics < 5) + if (supportedFabrics < 4) { - ChipLogError(chipTool, "Error: supportedFabrics is lower than expected. Min value is 5 but got '%d'", supportedFabrics); + ChipLogError(chipTool, "Error: supportedFabrics is lower than expected. Min value is 4 but got '%d'", supportedFabrics); runner->SetCommandExitStatus(CHIP_ERROR_INTERNAL); return; }