Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cmd/integration-test-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,10 @@ func verifyData() error {
i := uint64(0)
for fileScanner.Scan() {
expectedData := common.Hex2Bytes(fileScanner.Text())
blob := utils.EncodeBlobs(expectedData)[0]
blob, err := utils.FromData(expectedData)
if err != nil {
return fmt.Errorf("encode uploaded data %d: %w", i, err)
}
commit, _, _ := sm.TryReadMeta(i)
data, _, err := sm.TryRead(i, kvSize, common.BytesToHash(commit))
if err != nil {
Expand Down
4 changes: 3 additions & 1 deletion integration_tests/scripts/ituploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function UploadBlobsForIntegrationTest() {
// write blobs
try {
let status = await es.writeBlobs(keys, blobs);
if (status == false) {
if (!status.success) {
continue
}
console.log(status);
Expand All @@ -59,6 +59,8 @@ async function UploadBlobsForIntegrationTest() {
}
}

await es.close();

if (!NEED_WAIT) {
return
}
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
},
"dependencies": {
"dotenv": "^16.4.5",
"ethers": "^6.13.1",
"ethstorage-sdk": "^2.1.1",
"ethers": "6.17.0",
"ethstorage-sdk": "4.2.5",
"@actions/core": "^1.10.1"
},
"repository": {
Expand Down
Loading