Skip to content

Commit 164fe00

Browse files
committed
update lint and test
1 parent 4952e7c commit 164fe00

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

builder/deploy/imagerunner/remote_runner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ func (h *RemoteRunner) ListWorkFlows(ctx context.Context, username string, per,
342342
if err != nil {
343343
return nil, fmt.Errorf("failed to list evaluation jobs, %w", err)
344344
}
345+
defer response.Body.Close()
345346
var res types.ArgoWorkFlowListRes
346347
if err := json.NewDecoder(response.Body).Decode(&res); err != nil {
347348
return nil, err

component/model_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,10 @@ func TestModelComponent_Show(t *testing.T) {
232232
HTTPCloneURL: "https://foo.com/s/foo/bar.git",
233233
SSHCloneURL: "[email protected]:s/foo/bar.git",
234234
},
235-
EnableInference: true,
236-
EnableFinetune: true,
237-
WidgetType: types.ModelWidgetTypeGeneration,
235+
EnableInference: true,
236+
EnableFinetune: true,
237+
EnableEvaluation: true,
238+
WidgetType: types.ModelWidgetTypeGeneration,
238239
}, model)
239240
}
240241

0 commit comments

Comments
 (0)