Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Jul 4, 2019
1 parent b8a4729 commit 89c06d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dkron/grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestGRPCExecutionDone(t *testing.T) {
}

rc := NewGRPCClient(nil, a)
rc.CallExecutionDone(a.getRPCAddr(), testExecution)
rc.ExecutionDone(a.getRPCAddr(), testExecution)
execs, _ := a.Store.GetExecutions("test")

assert.Len(t, execs, 1)
Expand All @@ -65,7 +65,7 @@ func TestGRPCExecutionDone(t *testing.T) {
a.Store.DeleteJob(testJob.Name)

testExecution.FinishedAt = time.Now()
err := rc.CallExecutionDone(a.getRPCAddr(), testExecution)
err := rc.ExecutionDone(a.getRPCAddr(), testExecution)

assert.Error(t, err, ErrExecutionDoneForDeletedJob)
}

0 comments on commit 89c06d8

Please sign in to comment.