Skip to content

Commit

Permalink
Merge branch 'master' into TOOM-2580-caching-update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dino Omanovic committed Oct 24, 2016
2 parents 46a5e65 + e434b5f commit a48502b
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions composition/composition_handler_test.go
Expand Up @@ -13,7 +13,6 @@ import (
"strings"
"testing"
"time"
"github.com/tarent/lib-compose/composition"
)

func Test_CompositionHandler_PositiveCase(t *testing.T) {
Expand Down Expand Up @@ -237,31 +236,6 @@ func Test_CompositionHandler_ErrorInMergingWithCache(t *testing.T) {
a.Equal(500, resp.Code)
}


func Test_LogFetchResultLoadingError(t *testing.T) {
//Prepare
ctrl := gomock.NewController(t)
defer ctrl.Finish()
contentFetcherFactory := func(r *http.Request) FetchResultSupplier {
return MockFetchResultSupplier{
&FetchResult{
Def: NewFetchDefinition("/foo"),
Content: &MemoryContent{},
Err: nil,
Hash: "hashString",
},
}
}

aggregator := NewCompositionHandler(contentFetcherFactory)
mockCompositionHandler := MockCompositionHandler()

aggregator2 := composition.NewCompositionHandler(contentFetcherFactory())
//Expect
aggregator2.ServeHTTP()
}


func Test_CompositionHandler_ErrorInFetching(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
Expand Down

0 comments on commit a48502b

Please sign in to comment.