@@ -13,6 +13,7 @@ import (
1313 "github.com/buildbarn/bb-remote-asset/pkg/storage"
1414 "github.com/buildbarn/bb-storage/pkg/blobstore/buffer"
1515 "github.com/buildbarn/bb-storage/pkg/digest"
16+ "github.com/buildbarn/bb-storage/pkg/util"
1617 "github.com/golang/mock/gomock"
1718 "github.com/stretchr/testify/require"
1819 "google.golang.org/protobuf/proto"
@@ -34,7 +35,7 @@ func bbDigest(d *remoteexecution.Digest) digest.Digest {
3435func TestActionCacheAssetStorePutBlob (t * testing.T ) {
3536 ctrl , ctx := gomock .WithContext (context .Background (), t )
3637
37- instanceName := digest .MustNewInstanceName ("" )
38+ instanceName := util . Must ( digest .NewInstanceName ("" ) )
3839 digestFunction , err := instanceName .GetDigestFunction (remoteexecution .DigestFunction_SHA256 , 0 )
3940 require .NoError (t , err )
4041
@@ -499,7 +500,7 @@ func TestActionCacheAssetStoreRoundTripWithSpecialQualifiers(t *testing.T) {
499500func TestActionCacheAssetStoreGetBlob (t * testing.T ) {
500501 ctrl , ctx := gomock .WithContext (context .Background (), t )
501502
502- instanceName := digest .MustNewInstanceName ("" )
503+ instanceName := util . Must ( digest .NewInstanceName ("" ) )
503504 digestFunction , err := instanceName .GetDigestFunction (remoteexecution .DigestFunction_SHA256 , 0 )
504505 require .NoError (t , err )
505506
@@ -542,7 +543,7 @@ func TestActionCacheAssetStoreGetBlob(t *testing.T) {
542543func TestActionCacheAssetStoreGetDirectory (t * testing.T ) {
543544 ctrl , ctx := gomock .WithContext (context .Background (), t )
544545
545- instanceName := digest .MustNewInstanceName ("" )
546+ instanceName := util . Must ( digest .NewInstanceName ("" ) )
546547 digestFunction , err := instanceName .GetDigestFunction (remoteexecution .DigestFunction_SHA256 , 0 )
547548 require .NoError (t , err )
548549
0 commit comments