Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Dec 22, 2023
1 parent 07c4361 commit 9b733d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pgengine/access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func TestLogChainElementExecution(t *testing.T) {
t.Run("Check LogChainElementExecution if sql fails", func(t *testing.T) {
mockPool.ExpectExec("INSERT INTO .*execution_log").WithArgs(
pgxmock.AnyArg(), pgxmock.AnyArg(), pgxmock.AnyArg(), pgxmock.AnyArg(), pgxmock.AnyArg(), pgxmock.AnyArg(),
pgxmock.AnyArg(), pgxmock.AnyArg(), pgxmock.AnyArg(), pgxmock.AnyArg()).
pgxmock.AnyArg(), pgxmock.AnyArg(), pgxmock.AnyArg(), pgxmock.AnyArg(), pgxmock.AnyArg()).
WillReturnError(errors.New("Failed to log chain element execution status"))
pge.LogTaskExecution(context.Background(), &pgengine.ChainTask{}, 0, "STATUS")
})
Expand Down

0 comments on commit 9b733d0

Please sign in to comment.