Skip to content

Commit

Permalink
Remove now unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasReumann committed Aug 17, 2023
1 parent 82cf1e4 commit 342d0c8
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions api/stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,35 +539,6 @@ func TestStreamVideoSections(t *testing.T) {
Middlewares: testutils.GetMiddlewares(tools.ErrorHandler, testutils.TUMLiveContext(testutils.TUMLiveContextAdmin)),
ExpectedCode: http.StatusBadRequest,
},
"GetFileById returns error": {
Router: func(r *gin.Engine) {
wrapper := dao.DaoWrapper{
StreamsDao: testutils.GetStreamMock(t),
CoursesDao: testutils.GetCoursesMock(t),
VideoSectionDao: func() dao.VideoSectionDao {
sectionMock := mock_dao.NewMockVideoSectionDao(gomock.NewController(t))
sectionMock.
EXPECT().
Get(section.ID).
Return(section, nil).
AnyTimes()
return sectionMock
}(),
FileDao: func() dao.FileDao {
fileMock := mock_dao.NewMockFileDao(gomock.NewController(t))
fileMock.
EXPECT().
GetFileById(fmt.Sprintf("%d", section.ID)).
Return(model.File{}, errors.New("")).
AnyTimes()
return fileMock
}(),
}
configGinStreamRestRouter(r, wrapper)
},
Middlewares: testutils.GetMiddlewares(tools.ErrorHandler, testutils.TUMLiveContext(testutils.TUMLiveContextAdmin)),
ExpectedCode: http.StatusNotFound,
},
"Delete returns error": {
Router: func(r *gin.Engine) {
wrapper := dao.DaoWrapper{
Expand Down

0 comments on commit 342d0c8

Please sign in to comment.