Skip to content

Commit

Permalink
da: use new deafult sentinel
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxcanfly committed Jan 9, 2024
1 parent 1bddfc5 commit 0707fa9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ func BasicDATest(t *testing.T, da da.DA) {
msg1 := []byte("message 1")
msg2 := []byte("message 2")

id1, proof1, err := da.Submit([]Blob{msg1}, 0)
id1, proof1, err := da.Submit([]Blob{msg1}, -1)
assert.NoError(t, err)
assert.NotEmpty(t, id1)
assert.NotEmpty(t, proof1)

id2, proof2, err := da.Submit([]Blob{msg2}, 0)
id2, proof2, err := da.Submit([]Blob{msg2}, -1)
assert.NoError(t, err)
assert.NotEmpty(t, id2)
assert.NotEmpty(t, proof2)

id3, proof3, err := da.Submit([]Blob{msg1}, 0)
id3, proof3, err := da.Submit([]Blob{msg1}, -1)
assert.NoError(t, err)
assert.NotEmpty(t, id3)
assert.NotEmpty(t, proof3)
Expand Down Expand Up @@ -110,7 +110,7 @@ func CheckErrors(t *testing.T, da da.DA) {
func GetIDsTest(t *testing.T, da da.DA) {
msgs := [][]byte{[]byte("msg1"), []byte("msg2"), []byte("msg3")}

ids, proofs, err := da.Submit(msgs, 0)
ids, proofs, err := da.Submit(msgs, -1)
assert.NoError(t, err)
assert.Len(t, ids, len(msgs))
assert.Len(t, proofs, len(msgs))
Expand Down Expand Up @@ -162,7 +162,7 @@ func ConcurrentReadWriteTest(t *testing.T, da da.DA) {
go func() {
defer wg.Done()
for i := uint64(1); i <= 100; i++ {
_, _, err := da.Submit([][]byte{[]byte("test")}, 0)
_, _, err := da.Submit([][]byte{[]byte("test")}, -1)
assert.NoError(t, err)
}
}()
Expand Down

0 comments on commit 0707fa9

Please sign in to comment.