Skip to content

Commit 6bf91ec

Browse files
Jason Yellicksykesm
authored andcommitted
FAB-16353 Break endorser test 'It' into pieces
This CR breaks the endorser test's large primary "It" into several instances, each testing a different aspect of the invocation. It also groups the context 'when blank fails" along with the corresponding it, and adds some additional checks which were previously missing. Change-Id: Ia8d592125b95109e9457d3dd51f873d16db93457 Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
1 parent 03041f3 commit 6bf91ec

File tree

3 files changed

+448
-231
lines changed

3 files changed

+448
-231
lines changed

core/endorser/endorser_suite_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ type txSimulator interface {
3737
ledger.TxSimulator
3838
}
3939

40+
//go:generate counterfeiter -o fake/history_query_executor.go --fake-name HistoryQueryExecutor . historyQueryExecutor
41+
type historyQueryExecutor interface {
42+
ledger.HistoryQueryExecutor
43+
}
44+
4045
func TestEndorser(t *testing.T) {
4146
RegisterFailHandler(Fail)
4247
RunSpecs(t, "Endorser Suite")

0 commit comments

Comments
 (0)