finish handler tests
This commit is contained in:
		@ -59,7 +59,7 @@ func (m *testDBRepo) SearchAvailabilityForAllRooms(start, end time.Time) ([]mode
 | 
			
		||||
func (m *testDBRepo) GetRoomById(id int) (models.Room, error) {
 | 
			
		||||
	var room models.Room
 | 
			
		||||
 | 
			
		||||
	if id > 2 {
 | 
			
		||||
	if id > 2 || id <= 0 {
 | 
			
		||||
		return room, errors.New("deliberate error")
 | 
			
		||||
	}
 | 
			
		||||
	return room, nil
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user