Skip to content

Commit

Permalink
Change unit tests for cache invalidation handler to include the const…
Browse files Browse the repository at this point in the history
…ructor
  • Loading branch information
Dino Omanovic committed Jul 11, 2016
1 parent 67d8b90 commit e144c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composition/cache_invalidation_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func Test_CacheInvalidationHandler_Invalidation(t *testing.T) {

//given
cacheMocK := NewMockCache(ctrl)
cih := &CacheInvalidationHandler{cache: cacheMocK}
cih := NewCacheInvalidationHandler(cacheMocK, nil)
request, _ := http.NewRequest(http.MethodDelete, "internal/cache", nil)

//when
Expand All @@ -28,7 +28,7 @@ func Test_CacheInvalidationHandler_Delegate_Is_Called(t *testing.T) {
//given
handlerMock := mockhttp.NewMockHandler(ctrl)
cacheMocK := NewMockCache(ctrl)
cih := &CacheInvalidationHandler{cache: cacheMocK, next: handlerMock}
cih := NewCacheInvalidationHandler(cacheMocK, handlerMock)
request, _ := http.NewRequest(http.MethodDelete, "internal/cache", nil)

//when
Expand Down

0 comments on commit e144c96

Please sign in to comment.