Skip to content

Commit

Permalink
Fix writeMetadataFile test
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Shelenin <deemok@gmail.com>
  • Loading branch information
a-palchikov committed Apr 12, 2022
1 parent 8269f23 commit 664635e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/buildctl/buildctl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"path"
"testing"

"github.com/moby/buildkit/client"
"github.com/moby/buildkit/util/testutil/integration"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -119,7 +118,7 @@ func TestWriteMetadataFile(t *testing.T) {
tt := tt
t.Run(tt.name, func(t *testing.T) {
fname := path.Join(tmpdir, "metadata_"+tt.name)
require.NoError(t, writeMetadataFile(fname, &client.SolveResponse{ExporterResponse: tt.exporterResponse}))
require.NoError(t, writeMetadataFile(fname, tt.exporterResponse))
current, err := os.ReadFile(fname)
require.NoError(t, err)
var raw map[string]interface{}
Expand Down

0 comments on commit 664635e

Please sign in to comment.