put_actions #2

Merged
deepak merged 5 commits from put_actions into master 2021-01-10 17:35:21 +00:00
Showing only changes of commit 0faef20441 - Show all commits

View File

@@ -535,7 +535,6 @@ func TestUpdateAction(t *testing.T) {
}
func TestUpdateActionErr(t *testing.T) {
// setup
assert := assert.New(t)
@@ -548,7 +547,7 @@ func TestUpdateActionErr(t *testing.T) {
CompletedChunks: 6,
PlanID: 5,
ActionDescription: "testing",
ActionID: 2,
ActionID: 2,
}
mock.ExpectBegin()
@@ -579,10 +578,9 @@ func TestUpdateActionCommitErr(t *testing.T) {
CompletedChunks: 6,
PlanID: 5,
ActionDescription: "testing",
ActionID: 2,
ActionID: 2,
}
mock.ExpectBegin()
mock.ExpectExec("UPDATE actions").
WithArgs("testing", 3, 6, completedOn, 5, 2).