Skip to content

Commit

Permalink
try fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Victor Goklas authored and Jonathan Victor Goklas committed Jun 3, 2024
1 parent d3a50d1 commit d417ef2
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions api/api/projects_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ func TestCreateProject(t *testing.T) {
_, err := prjRepository.Save(tC.existingProject)
assert.NoError(t, err)
}
projectService, err := service.NewProjectsService(mlflowTrackingURL, prjRepository, nil, false, nil)
projectService, err := service.NewProjectsService(
mlflowTrackingURL, prjRepository, nil, false,
config.UpdateProjectConfig{},
)
assert.NoError(t, err)

appCtx := &AppContext{
Expand Down Expand Up @@ -317,7 +320,10 @@ func TestListProjects(t *testing.T) {
assert.NoError(t, err)
}
}
projectService, err := service.NewProjectsService(mlflowTrackingURL, prjRepository, nil, false, nil)
projectService, err := service.NewProjectsService(
mlflowTrackingURL, prjRepository, nil, false,
config.UpdateProjectConfig{},
)
assert.NoError(t, err)

appCtx := &AppContext{
Expand Down Expand Up @@ -415,7 +421,7 @@ func TestUpdateProject(t *testing.T) {
},
},
},
updateProjectEndpoint: server.URL,
updateProjectEndpoint: "url",
updateProjectPayload: `{
"project": "{{.Name}}",
"administrators": "{{.Administrators}}",
Expand Down Expand Up @@ -685,7 +691,10 @@ func TestGetProject(t *testing.T) {
_, err := prjRepository.Save(tC.existingProject)
assert.NoError(t, err)
}
projectService, err := service.NewProjectsService(mlflowTrackingURL, prjRepository, nil, false, nil)
projectService, err := service.NewProjectsService(
mlflowTrackingURL, prjRepository, nil, false,
config.UpdateProjectConfig{},
)
assert.NoError(t, err)

appCtx := &AppContext{
Expand Down

0 comments on commit d417ef2

Please sign in to comment.