Skip to content

Commit 6d8cc1d

Browse files
committed
fix tests
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
1 parent b058e68 commit 6d8cc1d

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ linters:
220220
# An array of strings that specify globs of packages to ignore.
221221
# Default: []
222222
ignore-package-globs:
223-
- github.ibm.com/decentralized-trust-research/scalable-committer/utils/grpcerror
224223
# An array of strings that specify regular expressions of interfaces to ignore.
225224
# Default: []
226225
# ignoreInterfaceRegexps:

token/core/fabtoken/v1/validator/validator_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,9 @@ func newValidatorEnv(benchmarkCase *benchmark2.Case, isIssue bool) (*validatorEn
11281128
return nil, err
11291129
}
11301130
tr.Issues = [][]byte{rawIA}
1131-
tr.Signatures = [][]byte{[]byte("signature")}
1131+
tr.Signatures = []*driver.RequestSignature{
1132+
{Action: &driver.ActionSignature{Signature: []byte("signature")}},
1133+
}
11321134
} else {
11331135
ta := &actions.TransferAction{
11341136
Issuer: issuer,
@@ -1156,7 +1158,9 @@ func newValidatorEnv(benchmarkCase *benchmark2.Case, isIssue bool) (*validatorEn
11561158
}
11571159
tr.Transfers = [][]byte{rawTA}
11581160
for range benchmarkCase.NumInputs {
1159-
tr.Signatures = append(tr.Signatures, []byte("signature"))
1161+
tr.Signatures = append(tr.Signatures, &driver.RequestSignature{
1162+
Action: &driver.ActionSignature{Signature: []byte("signature")},
1163+
})
11601164
}
11611165
}
11621166

0 commit comments

Comments
 (0)