Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Vasek <[email protected]>
  • Loading branch information
matejvasek committed Jul 26, 2023
1 parent e9300c0 commit 947fe5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/oci/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func TestBuilder_Concurrency(t *testing.T) {
go func() {
defer wg.Done()
if err := builder1.Build(context.Background(), f, TestPlatforms); err != nil {
t.Errorf("test build error %v", err)
t.Errorf("test build error: %v", err)
}
}()

Expand All @@ -108,14 +108,14 @@ func TestBuilder_Concurrency(t *testing.T) {
// Build B
builder2 := NewBuilder("builder2", true)
builder2.buildFn = func(config *buildConfig, platform v1.Platform) (v1.Descriptor, v1.Layer, error) {
return v1.Descriptor{}, nil, fmt.Errorf("should not have been invoked")
return v1.Descriptor{}, nil, fmt.Errorf("the buildFn should not have been invoked")
}
wg.Add(1)
go func() {
defer wg.Done()
err = builder2.Build(context.Background(), f, TestPlatforms)
if !errors.As(err, &ErrBuildInProgress{}) {
t.Errorf("test build error %v", err)
t.Errorf("test build error: %v", err)
}
}()

Expand Down

0 comments on commit 947fe5f

Please sign in to comment.