Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
4ff61287
Commit
4ff61287
authored
Feb 24, 2020
by
pengjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#627 fix unit test
parent
618c3308
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
collateralize_test.go
plugin/dapp/collateralize/executor/collateralize_test.go
+3
-3
No files found.
plugin/dapp/collateralize/executor/collateralize_test.go
View file @
4ff61287
...
@@ -420,7 +420,7 @@ func TestCollateralize(t *testing.T) {
...
@@ -420,7 +420,7 @@ func TestCollateralize(t *testing.T) {
// collateralize liquidate
// collateralize liquidate
p7
:=
&
pkt
.
CollateralizeBorrowTx
{
p7
:=
&
pkt
.
CollateralizeBorrowTx
{
CollateralizeID
:
common
.
ToHex
(
collateralizeID
),
CollateralizeID
:
common
.
ToHex
(
collateralizeID
),
Value
:
10
0
,
Value
:
5
0
,
}
}
createTx
,
err
=
pkt
.
CreateRawCollateralizeBorrowTx
(
env
.
cfg
,
p7
)
createTx
,
err
=
pkt
.
CreateRawCollateralizeBorrowTx
(
env
.
cfg
,
p7
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -450,7 +450,7 @@ func TestCollateralize(t *testing.T) {
...
@@ -450,7 +450,7 @@ func TestCollateralize(t *testing.T) {
p71
:=
&
pkt
.
CollateralizeBorrowTx
{
p71
:=
&
pkt
.
CollateralizeBorrowTx
{
CollateralizeID
:
common
.
ToHex
(
collateralizeID
),
CollateralizeID
:
common
.
ToHex
(
collateralizeID
),
Value
:
10
0
,
Value
:
5
0
,
}
}
createTx
,
err
=
pkt
.
CreateRawCollateralizeBorrowTx
(
env
.
cfg
,
p71
)
createTx
,
err
=
pkt
.
CreateRawCollateralizeBorrowTx
(
env
.
cfg
,
p71
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -589,7 +589,7 @@ func TestCollateralize(t *testing.T) {
...
@@ -589,7 +589,7 @@ func TestCollateralize(t *testing.T) {
// expire liquidate
// expire liquidate
p10
:=
&
pkt
.
CollateralizeBorrowTx
{
p10
:=
&
pkt
.
CollateralizeBorrowTx
{
CollateralizeID
:
common
.
ToHex
(
collateralizeID
),
CollateralizeID
:
common
.
ToHex
(
collateralizeID
),
Value
:
10
0
,
Value
:
5
0
,
}
}
createTx
,
err
=
pkt
.
CreateRawCollateralizeBorrowTx
(
env
.
cfg
,
p10
)
createTx
,
err
=
pkt
.
CreateRawCollateralizeBorrowTx
(
env
.
cfg
,
p10
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment