Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Jan 31, 2024
1 parent 3ea3f13 commit 34a4049
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func TestEndToEnd(t *testing.T) {

inputs, _ := coreutils.MakeLiteralMap(map[string]interface{}{"x": 1})
template := flyteIdlCore.TaskTemplate{
Type: "databricks",
Type: "spark",
Custom: st,
Target: &flyteIdlCore.TaskTemplate_Container{
Container: &flyteIdlCore.Container{Args: []string{"pyflyte-fast-execute", "--output-prefix", "/tmp/123"}},
Expand Down Expand Up @@ -237,7 +237,10 @@ func newMockAgentPlugin() webapi.PluginEntry {
ResourceMeta: []byte{1, 2, 3, 4},
}}, nil)

agentClient.On("GetTask", mock.Anything, mock.Anything).Return(
mockGetRequestMatcher := mock.MatchedBy(func(request *admin.GetTaskRequest) bool {
return request.GetTaskType() == "spark"
})
agentClient.On("GetTask", mock.Anything, mockGetRequestMatcher).Return(
&admin.GetTaskResponse{Resource: &admin.Resource{State: admin.State_SUCCEEDED}}, nil)

agentClient.On("DeleteTask", mock.Anything, mock.Anything).Return(
Expand Down

0 comments on commit 34a4049

Please sign in to comment.