core: enable test, disabled in ac52765

This commit is contained in:
Anna Shaleva 2021-02-17 10:45:39 +03:00
parent 1e108f20a7
commit a4d84ee3b0

View file

@ -2,8 +2,10 @@ package core
import ( import (
"errors" "errors"
"fmt"
"math/big" "math/big"
"math/rand" "math/rand"
"strings"
"testing" "testing"
"time" "time"
@ -1195,7 +1197,6 @@ func TestIsTxStillRelevant(t *testing.T) {
require.NoError(t, bc.AddBlock(bc.newBlock())) require.NoError(t, bc.AddBlock(bc.newBlock()))
require.True(t, bc.IsTxStillRelevant(tx3, nil, false)) require.True(t, bc.IsTxStillRelevant(tx3, nil, false))
}) })
/* // neo-project/neo#2289
t.Run("contract witness check fails", func(t *testing.T) { t.Run("contract witness check fails", func(t *testing.T) {
src := fmt.Sprintf(`package verify src := fmt.Sprintf(`package verify
import ( import (
@ -1226,7 +1227,6 @@ func TestIsTxStillRelevant(t *testing.T) {
require.NoError(t, bc.AddBlock(bc.newBlock())) require.NoError(t, bc.AddBlock(bc.newBlock()))
require.False(t, bc.IsTxStillRelevant(tx, mp, false)) require.False(t, bc.IsTxStillRelevant(tx, mp, false))
}) })
*/
} }
func TestMemPoolRemoval(t *testing.T) { func TestMemPoolRemoval(t *testing.T) {