swarm/storage/feed: Expose MaxUpdateDataLength constant (#17858)
This commit is contained in:
committed by
Anton Evangelatov
parent
f95811e65b
commit
c5cb214f68
@ -35,7 +35,7 @@ func TestUpdateLengthCheck(t *testing.T) {
|
||||
testBinarySerializerLengthCheck(t, getTestFeedUpdate())
|
||||
// Test fail if update is too big
|
||||
update := getTestFeedUpdate()
|
||||
update.data = make([]byte, maxUpdateDataLength+100)
|
||||
update.data = make([]byte, MaxUpdateDataLength+100)
|
||||
serialized := make([]byte, update.binaryLength())
|
||||
if err := update.binaryPut(serialized); err == nil {
|
||||
t.Fatal("Expected update.binaryPut to fail since update is too big")
|
||||
|
Reference in New Issue
Block a user