Commit 1e42fcd4 authored by vipwzw's avatar vipwzw

auto ci

parent df9d9538
......@@ -2,6 +2,7 @@ package executor
import (
"fmt"
"github.com/33cn/chain33/types"
ety "github.com/33cn/plugin/plugin/dapp/storage/types"
)
......
......@@ -122,13 +122,13 @@ func TestStorage(t *testing.T) {
assert.Nil(t, err)
assert.Equal(t, contents[0], reply2.Storages[0].GetContentStorage().Content)
tx, err = CreateTx("ContentStorage", &oty.ContentOnlyNotaryStorage{Content: contents[1], Op: 1,Key:txhash}, PrivKeyA, cfg)
tx, err = CreateTx("ContentStorage", &oty.ContentOnlyNotaryStorage{Content: contents[1], Op: 1, Key: txhash}, PrivKeyA, cfg)
assert.Nil(t, err)
Exec_Block(t, stateDB, kvdb, env, tx)
reply, err = QueryStorageByKey(stateDB, kvdb, txhash, cfg)
assert.Nil(t, err)
assert.Equal(t, append(append(contents[0],[]byte(",")...),contents[1]...), reply.GetContentStorage().Content)
assert.Equal(t, append(append(contents[0], []byte(",")...), contents[1]...), reply.GetContentStorage().Content)
tx, err = CreateTx("HashStorage", &oty.HashOnlyNotaryStorage{Hash: common.Sha256(contents[0])}, PrivKeyA, cfg)
assert.Nil(t, err)
......
package types
import "fmt"
// some errors definition
......
......@@ -6,9 +6,10 @@ package types
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment