Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c54ca3

Browse files
committed
Fixed a number of unit tests
1 parent 07cc165 commit 0c54ca3

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

Utilities/BlockExtractor/util.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ func main() {
5656
panic(err)
5757
}
5858
}
59-
dbo := state.GetDB()
59+
dbo := state.GetAndLockDB()
60+
defer state.UnlockDB()
6061

6162
if chainID != "" {
6263
err := be.ExportEChain(chainID, dbo)

controlPanel/controlPanel_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package controlPanel_test
22

33
import (
4-
"fmt"
4+
//"fmt"
55
"testing"
66
"time"
77

receipts/ReceiptGenerator/ReceiptGenerator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ func main() {
5454
panic(err)
5555
}
5656
}
57-
dbo := state.GetDB()
57+
dbo := state.GetAndLockDB()
58+
defer state.UnlockDB()
5859

5960
if entryID != "" {
6061
err := ExportEntryReceipt(entryID, dbo)

0 commit comments

Comments
 (0)