Skip to content

Commit

Permalink
fix: SRS ingestion and cfg loading bugs - update error check in blob …
Browse files Browse the repository at this point in the history
…oversized check to account for holesky test
  • Loading branch information
ethenotethan committed Jul 20, 2024
1 parent 792dd32 commit 4318921
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions e2e/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package e2e_test

import (
"fmt"
"strings"
"sync"
"testing"
"time"
Expand Down Expand Up @@ -140,12 +141,22 @@ func TestProxyClientWithOversizedBlob(t *testing.T) {
blobInfo, err := daClient.SetData(ts.Ctx, testPreimage)
require.Empty(t, blobInfo)
require.Error(t, err)
require.Contains(t, err.Error(), "blob is larger than max blob size")

oversizedError := false
if strings.Contains(err.Error(), "blob is larger than max blob size") {
oversizedError = true
}

if strings.Contains(err.Error(), "blob size cannot exceed 2 MiB") {
oversizedError = true
}

require.True(t, oversizedError)

}

func TestProxyClient_MultiSameContentBlobs_SameBatch(t *testing.T) {
t.Skip("Skipping test until fix is applied to holesky")
t.Skip("Skipping test until fix is applied to holesky")


t.Parallel()
Expand Down

0 comments on commit 4318921

Please sign in to comment.