An infinite series of sines can indeed converge to a constant, in the interior of the interval in question (I guess you have Dirichlet boundary conditions at the endpoints). If you look at the sum of that Fourier series on the whole real line you will see a square wave, where the part that you're interested in constitutes half a period.