my computer will still die soon
This commit is contained in:
1 parent
e80f2601ab
commit
52a13b9cab
7 files changed
+62
-6
No files matched your search
+11
-1
@@ -170,7 +170,11 @@ func TestGetDefaultPayload(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetPayload(t *testing.T) {
|
||||
c := &contract.AcceptedContract{Hash: "sha512"}
|
||||
c := &contract.AcceptedContract{
|
||||
Hash: "sha512",
|
||||
BlockCipher: "aes256",
|
||||
BlockCipherMode: "ofb",
|
||||
}
|
||||
p, err := GetPayload(nil, c)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
@@ -186,5 +190,11 @@ func TestGetPayload(t *testing.T) {
|
||||
if p.HashMethod != expectedPayload.HashMethod {
|
||||
t.Error("bad hash method")
|
||||
}
|
||||
if p.Block != expectedPayload.Block {
|
||||
t.Error("bad block method", p.Block)
|
||||
}
|
||||
if p.BlockMode != expectedPayload.BlockMode {
|
||||
t.Error("bad block method", p.Block)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user