Skip to content

Commit

Permalink
uncomment unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
udpatil committed Nov 22, 2023
1 parent 961ef16 commit 8b16974
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions tasks/scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,24 +98,24 @@ func TestProcessAll(t *testing.T) {
},
expectedErr: nil,
},
//{
// name: "Test no stores on context should not panic",
// workers: 50,
// runs: 1,
// addStores: false,
// requests: requestList(50),
// deliverTxFunc: func(ctx sdk.Context, req types.RequestDeliverTx) types.ResponseDeliverTx {
// return types.ResponseDeliverTx{
// Info: fmt.Sprintf("%d", ctx.TxIndex()),
// }
// },
// assertions: func(t *testing.T, ctx sdk.Context, res []types.ResponseDeliverTx) {
// for idx, response := range res {
// require.Equal(t, fmt.Sprintf("%d", idx), response.Info)
// }
// },
// expectedErr: nil,
//},
{
name: "Test no stores on context should not panic",
workers: 50,
runs: 1,
addStores: false,
requests: requestList(50),
deliverTxFunc: func(ctx sdk.Context, req types.RequestDeliverTx) types.ResponseDeliverTx {
return types.ResponseDeliverTx{
Info: fmt.Sprintf("%d", ctx.TxIndex()),
}
},
assertions: func(t *testing.T, ctx sdk.Context, res []types.ResponseDeliverTx) {
for idx, response := range res {
require.Equal(t, fmt.Sprintf("%d", idx), response.Info)
}
},
expectedErr: nil,
},
}

for _, tt := range tests {
Expand Down

0 comments on commit 8b16974

Please sign in to comment.