@@ -70,21 +70,21 @@ func TestDARetriever_StrictEnvelopeMode_Switch(t *testing.T) {
7070 // --- Test Scenario ---
7171
7272 // A. Initial State: StrictMode is false. Legacy blob should be accepted.
73- assert .False (t , r .strictMode )
73+ assert .False (t , r .strictMode . Load () )
7474
7575 decodedLegacy := r .tryDecodeHeader (legacyBlob , 100 )
7676 require .NotNil (t , decodedLegacy )
7777 assert .Equal (t , uint64 (1 ), decodedLegacy .Height ())
7878
7979 // StrictMode should still be false because it was a legacy blob
80- assert .False (t , r .strictMode )
80+ assert .False (t , r .strictMode . Load () )
8181
8282 // B. Receiving Envelope: Should be accepted and Switch StrictMode to true.
8383 decodedEnvelope := r .tryDecodeHeader (envelopeBlob , 101 )
8484 require .NotNil (t , decodedEnvelope )
8585 assert .Equal (t , uint64 (2 ), decodedEnvelope .Height ())
8686
87- assert .True (t , r .strictMode , "retriever should have switched to strict mode" )
87+ assert .True (t , r .strictMode . Load () , "retriever should have switched to strict mode" )
8888
8989 // C. Receiving Legacy again: Should be REJECTED now.
9090 // We reuse the same legacyBlob (or a new one, doesn't matter, structure is legacy).
0 commit comments