Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bysomeone committed May 28, 2024
1 parent 8105570 commit 55607da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/queueprotocol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestMain(m *testing.M) {
func TestQueueProtocolAPI(t *testing.T) {
var option client.QueueProtocolOption
option.SendTimeout = time.Millisecond
option.WaitTimeout = 2 * time.Millisecond
option.WaitTimeout = 100 * time.Millisecond

_, err := client.New(nil, nil)
if err == nil {
Expand Down
3 changes: 2 additions & 1 deletion system/consensus/snowman/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ func TestChain33VM(t *testing.T) {
require.Equal(t, choices.Processing, sb.Status())
blk := sb.(*snowBlock).block
sb1, err := vm.ParseBlock(nil, sb.Bytes())
require.Nil(t, err)
require.Equal(t, choices.Rejected, sb1.Status())
vm.decidedHashes.Add(sb.ID(), true)
sb1, err = vm.ParseBlock(nil, sb.Bytes())
sb1, _ = vm.ParseBlock(nil, sb.Bytes())
require.Equal(t, choices.Accepted, sb1.Status())
require.Nil(t, err)
// test and and build new block
Expand Down
2 changes: 1 addition & 1 deletion system/crypto/btcscript/btcscript_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
cryptocli "github.com/33cn/chain33/common/crypto/client"
"github.com/stretchr/testify/mock"

"github.com/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcutil"

"github.com/33cn/chain33/system/crypto/btcscript/script"
_ "github.com/33cn/chain33/system/dapp/init"
Expand Down

0 comments on commit 55607da

Please sign in to comment.