Skip to content

Commit

Permalink
Revert "test: add run cases (#60)"
Browse files Browse the repository at this point in the history
This reverts commit 1448afa.
  • Loading branch information
will-2012 authored Jan 17, 2023
1 parent 1448afa commit c56d0af
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 316 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ cd build
./storage_provider -v
# Run Services
./storage_provider -config ./config.toml
# Run Cases
./test-storage-provider
```
4 changes: 0 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ go build -ldflags "\
-X 'main.BuildTime=${BuildTime}'" \
-o storage_provider cmd/storage_provider/*.go

go build -o test-storage-provider test/e2e/services/case_driver.go

if [ ! -d build ];then
mkdir build
mkdir -p build/data
fi
mv storage_provider ./build
mv test-storage-provider ./build
cp config/config.toml ./build
3 changes: 1 addition & 2 deletions service/downloader/downloader_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ func (downloader *Downloader) DownloaderObject(req *service.DownloaderServiceDow
resp.ErrMessage = merrors.MakeErrMsgResponse(err)
err = stream.Send(resp)
}
// log.CtxInfow(ctx, "download object completed", "error", err, "objectSize", objectInfo.Size, "sendSize", size)
log.CtxInfow(ctx, "download object completed", "error", err, "sendSize", size)
log.CtxInfow(ctx, "download object completed", "error", err, "objectSize", objectInfo.Size, "sendSize", size)
}()

objectInfo, err = downloader.mockChain.QueryObjectByName(req.BucketName + "/" + req.ObjectName)
Expand Down
5 changes: 5 additions & 0 deletions test/e2e/piecestore/disk_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import (
"os"
"testing"

<<<<<<< HEAD
"github.com/bnb-chain/greenfield-storage-provider/util/log"

=======
>>>>>>> develop
"github.com/stretchr/testify/assert"

"github.com/bnb-chain/greenfield-storage-provider/util/log"
Expand Down
308 changes: 0 additions & 308 deletions test/e2e/services/case_driver.go

This file was deleted.

0 comments on commit c56d0af

Please sign in to comment.