fmt changes
This commit is contained in:
parent
395231e1bf
commit
0faef20441
@ -535,7 +535,6 @@ func TestUpdateAction(t *testing.T) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func TestUpdateActionErr(t *testing.T) {
|
func TestUpdateActionErr(t *testing.T) {
|
||||||
// setup
|
// setup
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
@ -548,7 +547,7 @@ func TestUpdateActionErr(t *testing.T) {
|
|||||||
CompletedChunks: 6,
|
CompletedChunks: 6,
|
||||||
PlanID: 5,
|
PlanID: 5,
|
||||||
ActionDescription: "testing",
|
ActionDescription: "testing",
|
||||||
ActionID: 2,
|
ActionID: 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
mock.ExpectBegin()
|
mock.ExpectBegin()
|
||||||
@ -579,10 +578,9 @@ func TestUpdateActionCommitErr(t *testing.T) {
|
|||||||
CompletedChunks: 6,
|
CompletedChunks: 6,
|
||||||
PlanID: 5,
|
PlanID: 5,
|
||||||
ActionDescription: "testing",
|
ActionDescription: "testing",
|
||||||
ActionID: 2,
|
ActionID: 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
mock.ExpectBegin()
|
mock.ExpectBegin()
|
||||||
mock.ExpectExec("UPDATE actions").
|
mock.ExpectExec("UPDATE actions").
|
||||||
WithArgs("testing", 3, 6, completedOn, 5, 2).
|
WithArgs("testing", 3, 6, completedOn, 5, 2).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user