working commit
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
package repocli
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
ocidigest "github.com/opencontainers/go-digest"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"testing"
|
||||
"time"
|
||||
//"io"
|
||||
)
|
||||
|
||||
func TestDigest(t *testing.T) {
|
||||
@@ -23,7 +21,7 @@ func TestDigest(t *testing.T) {
|
||||
|
||||
ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
|
||||
tmpdir := t.TempDir()
|
||||
imager := NewImager(tmpdir)
|
||||
imager := NewEmptyImager(tmpdir)
|
||||
require.NotNil(t, imager)
|
||||
digest := fmt.Sprintf("%s:%s", digestobj.Algorithm(), digestobj.Encoded())
|
||||
size := int64(len(payload))
|
||||
|
||||
Reference in New Issue
Block a user