@@ -71,6 +71,9 @@ func TestSchema_Unmarshal(t *testing.T) {
7171 "GatewayUnauthenticatedRequestRateLimitPerIP": "1rps:100",
7272 "GatewayIncomingPayloadSizeLimit": "14kb",
7373 "GatewayVaultManagementEnabled": "true",
74+ "FeatureFlags": {
75+ "EnableOCRQueue": "true"
76+ },
7477 "PerOrg": {
7578 "ZeroBalancePruningTimeout": "48h"
7679 },
@@ -122,6 +125,7 @@ func TestSchema_Unmarshal(t *testing.T) {
122125 assert .Equal (t , 500 , cfg .WorkflowLimit .DefaultValue )
123126 assert .Equal (t , 14 * config .KByte , cfg .GatewayIncomingPayloadSizeLimit .DefaultValue )
124127 assert .Equal (t , true , cfg .GatewayVaultManagementEnabled .DefaultValue )
128+ assert .Equal (t , true , cfg .FeatureFlags .EnableOCRQueue .DefaultValue )
125129 assert .Equal (t , 48 * time .Hour , cfg .PerOrg .ZeroBalancePruningTimeout .DefaultValue )
126130 assert .Equal (t , 99 , cfg .PerOwner .WorkflowExecutionConcurrencyLimit .DefaultValue )
127131 assert .Equal (t , 250 * config .MByte , cfg .PerWorkflow .WASMMemoryLimit .DefaultValue )
@@ -141,6 +145,14 @@ func TestSchema_Unmarshal(t *testing.T) {
141145 assert .Equal (t , config .Timestamp (time .Date (2025 , 6 , 15 , 0 , 0 , 0 , 0 , time .UTC ).Unix ()), cfg .PerWorkflow .FeatureMultiTriggerExecutionIDsActiveAt .DefaultValue )
142146}
143147
148+ func TestFeatureFlags_EnableOCRQueue (t * testing.T ) {
149+ assert .False (t , Default .FeatureFlags .EnableOCRQueue .DefaultValue , "default should be false" )
150+
151+ got , err := Default .FeatureFlags .EnableOCRQueue .GetOrDefault (t .Context (), nil )
152+ require .NoError (t , err )
153+ assert .False (t , got , "GetOrDefault with nil getter should return default false" )
154+ }
155+
144156func TestDefaultGetter (t * testing.T ) {
145157 limit := Default .PerWorkflow .HTTPAction .CallLimit
146158
0 commit comments