Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ping-ke committed Aug 1, 2024
1 parent 08f61bd commit eee0dff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
run: |
cd ../es-node
make
./run-l2-it-rpc.sh >> es-node-it-bootnode.log&
./run-l2-it-rpc.sh > es-node-it-bootnode.log&
- name: Upload blobs
- name: Upload Blobs
run: |
cd ../ethstorage-sdk
git checkout main
Expand All @@ -52,9 +52,9 @@ jobs:
node it.js
- name: Test
run: |
cd ../es-node/cmd/integration-test-server
run: |
cd ../es-node
env ES_NODE_STORAGE_MINER=0x5C935469C5592Aeeac3372e922d9bCEabDF8830d ES_NODE_SIGNER_PRIVATE_KEY=e690c916d02b6f3ad4bb70cc2663389ea88a79ded45613b1bd5545961d063258 ./run-l2-it.sh > es-node-it.log&
cd /cmd/integration-test-server
go build
./integration-test-server > itserver.log&
cd ../..
env ES_NODE_STORAGE_MINER=0x5C935469C5592Aeeac3372e922d9bCEabDF8830d ES_NODE_SIGNER_PRIVATE_KEY=e690c916d02b6f3ad4bb70cc2663389ea88a79ded45613b1bd5545961d063258 ./run-l2-it.sh >> es-node-it.log
./integration-test-server > itserver.log
6 changes: 3 additions & 3 deletions cmd/integration-test-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func checkState(oldState, newState *node.NodeState) {
}
check = true
if shardState.SyncState.PeerCount <= 0 {
addErrorMessage(fmt.Sprintf("es-node peer count should larger than 0, peers: %d", shardState.SyncState.PeerCount))
addErrorMessage("es-node peer count should larger than 0")
}

if oldShardState.SyncState.SyncProgress < 10000 &&
Expand All @@ -120,7 +120,7 @@ func checkState(oldState, newState *node.NodeState) {
addErrorMessage("Mining should be start after sync done.")
}
}
if check {
if !check {
addErrorMessage(fmt.Sprintf("Shard %d in the new state do not exist in the old state", shardState.ShardId))
}
}
Expand Down Expand Up @@ -162,7 +162,7 @@ func checkFinalState(state *node.NodeState) {

func addErrorMessage(errMessage string) {
log.Warn("Add error message", "msg", errMessage)
errorMessages = append(errorMessages, errMessage)
errorMessages = append(errorMessages, errMessage+"\n")
}

func listenAndServe(port int) error {
Expand Down

0 comments on commit eee0dff

Please sign in to comment.