@@ -19,24 +19,6 @@ describe("SC", () => {
1919 before ( async ( ) => {
2020 await chip . clearMdns ( ) ;
2121
22- const sc41 = chip . testFor ( "SC/4.1" ) ;
23- await sc41 . edit (
24- edit . sed (
25- // We can pass values to YAML tests using e.g. .args("--", "deviceType", 257)... But AFAICT there is no
26- // support for converting this value to an integer, even though the config schema specifies "int16u"
27- // explicitly. So, the test then fails because 257 !== "257". Instead we just rewrite the test
28- // definition
29- "s/defaultValue: 65535/defaultValue: 257/" ,
30-
31- // We do not like ridiculously long waits; reduce commissioning timeout. Unfortunately test framework
32- // is slow so we can't reduce to a reasonable level but 10s is still way better than 3m.
33- "s/value: 180/value: 10/" ,
34-
35- // Also reduce the test delay that waits for timeout
36- "s/value: 180000/value: 10000/" ,
37- ) ,
38- ) ;
39-
4022 const sc71 = chip . testFor ( "SC/7.1" ) ;
4123 await sc71 . edit (
4224 edit . sed (
@@ -53,14 +35,17 @@ describe("SC", () => {
5335
5436 chip ( "SC/*" ) . exclude (
5537 // These require additional configuration below
56- "SC/4.1" ,
38+ "SC/4.1/* " ,
5739 "SC/7.1" ,
5840 ) ;
5941
60- // SC/4.1 needs MDNS cleared
61- chip ( "SC/4.1" ) . beforeStart ( async ( ) => {
62- await chip . clearMdns ( ) ;
63- } ) ;
42+ // SC/4.1 needs MDNS cleared. run1 has the wrong manual code; run2 has a pairing code that works. Not sure what's
43+ // up with that. run3 is LIT ICD so not relevant for us
44+ [ chip ( "SC/4.1/run1" ) . args ( "--manual-code" , "34970112332" ) , chip ( "SC/4.1/run2" ) ] . forEach ( builder =>
45+ builder . beforeStart ( async ( ) => {
46+ await chip . clearMdns ( ) ;
47+ } ) ,
48+ ) ;
6449
6550 // 7.1 must start factory fresh
6651 chip ( "SC/7.1" ) . uncommissioned ( ) ;
0 commit comments