File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -869,7 +869,7 @@ func Benchmark100ConcurrentContractCalls(b *testing.B) {
869
869
resChan := make (chan []byte , callCount )
870
870
wg .Add (callCount )
871
871
872
- info = mockInfoBinNoAssert ( "fred" )
872
+ info = MockInfoBin ( b , "fred" )
873
873
874
874
for i := 0 ; i < callCount ; i ++ {
875
875
go func () {
@@ -1491,16 +1491,3 @@ func TestFloats(t *testing.T) {
1491
1491
hash := hasher .Sum (nil )
1492
1492
require .Equal (t , "95f70fa6451176ab04a9594417a047a1e4d8e2ff809609b8f81099496bee2393" , hex .EncodeToString (hash ))
1493
1493
}
1494
-
1495
- // mockInfoBinNoAssert creates the message binary without using testify assertions
1496
- func mockInfoBinNoAssert (sender types.HumanAddress ) []byte {
1497
- info := types.MessageInfo {
1498
- Sender : sender ,
1499
- Funds : types.Array [types.Coin ]{},
1500
- }
1501
- res , err := json .Marshal (info )
1502
- if err != nil {
1503
- panic (err )
1504
- }
1505
- return res
1506
- }
You can’t perform that action at this time.
0 commit comments