Skip to content

Commit 1e9e1eb

Browse files
committed
fix unit tests
1 parent 3466e80 commit 1e9e1eb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/parse/parse_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,23 +271,23 @@ func TestGetBuildOutput(t *testing.T) {
271271
description: "hyphen",
272272
input: "-",
273273
output: define.BuildOutputOption{
274-
IsStdout: true,
274+
Type: define.BuildOutputStdout,
275275
},
276276
},
277277
{
278278
description: "just-a-path",
279279
input: "/tmp",
280280
output: define.BuildOutputOption{
281-
IsDir: true,
282-
Path: "/tmp",
281+
Type: define.BuildOutputLocalDir,
282+
Path: "/tmp",
283283
},
284284
},
285285
{
286286
description: "normal-path",
287287
input: "type=local,dest=/tmp",
288288
output: define.BuildOutputOption{
289-
IsDir: true,
290-
Path: "/tmp",
289+
Type: define.BuildOutputLocalDir,
290+
Path: "/tmp",
291291
},
292292
},
293293
}

0 commit comments

Comments
 (0)