Skip to content

Commit 4b234de

Browse files
committed
Fix compile errors in tests after rebase
1 parent 06c7864 commit 4b234de

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

block/internal/syncing/da_retriever_strict_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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.Load())
73+
assert.False(t, r.strictMode)
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.Load())
80+
assert.False(t, r.strictMode)
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.Load(), "retriever should have switched to strict mode")
87+
assert.True(t, r.strictMode, "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).

block/internal/syncing/syncer_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,13 @@ func TestSequentialBlockSync(t *testing.T) {
271271
assert.Equal(t, uint64(2), finalState.LastBlockHeight)
272272

273273
// Verify DA inclusion markers are set
274-
_, ok := cm.GetHeaderDAIncluded(hdr1.Hash().String())
274+
_, ok := cm.GetHeaderDAIncludedByHash(hdr1.Hash().String())
275275
assert.True(t, ok)
276-
_, ok = cm.GetHeaderDAIncluded(hdr2.Hash().String())
276+
_, ok = cm.GetHeaderDAIncludedByHash(hdr2.Hash().String())
277277
assert.True(t, ok)
278-
_, ok = cm.GetDataDAIncluded(data1.DACommitment().String())
278+
_, ok = cm.GetDataDAIncludedByHash(data1.DACommitment().String())
279279
assert.True(t, ok)
280-
_, ok = cm.GetDataDAIncluded(data2.DACommitment().String())
280+
_, ok = cm.GetDataDAIncludedByHash(data2.DACommitment().String())
281281
assert.True(t, ok)
282282
requireEmptyChan(t, errChan)
283283
}

0 commit comments

Comments
 (0)