Skip to content

Commit

Permalink
Debug failing unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Minář <[email protected]>
  • Loading branch information
Michal Minář committed Mar 7, 2017
1 parent 62ff908 commit 35a69dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/dockerregistry/server/blobdescriptorservice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ func GetTestPassThroughToUpstream(ctx context.Context) bool {
// It relies on the fact that blobDescriptorService requires higher levels to set repository object on given
// context. If the object isn't given, its method will err out.
func TestBlobDescriptorServiceIsApplied(t *testing.T) {
ctx := context.Background()

log.SetLevel(log.DebugLevel)
// don't do any authorization check
installFakeAccessController(t)
m := fakeBlobDescriptorService(t)
Expand All @@ -72,7 +71,7 @@ func TestBlobDescriptorServiceIsApplied(t *testing.T) {
DefaultRegistryClient = backupRegistryClient
}()

app := handlers.NewApp(ctx, &configuration.Configuration{
app := handlers.NewApp(context.Background(), &configuration.Configuration{
Loglevel: "debug",
Auth: map[string]configuration.Parameters{
fakeAuthorizerName: {"realm": fakeAuthorizerName},
Expand Down

0 comments on commit 35a69dd

Please sign in to comment.