Among all sequential tests with prescribed error probabilities of the null hypothesis $H_0: \theta = -\theta_1$ versus the simple alternative $H_1: \theta = \theta_1$, where $\theta$ is the unknown mean of a normal population, we want to find the test which minimizes the maximum expected sample size. In this paper, we formulate the problem as an optimal stopping problem and find an optimal stopping rule. The analogous problem in continuous time is also studied, where we want to test whether the drift coefficient of a Wiener process is $-\theta_1$ or $\theta_1$. By reducing the corresponding optimal stopping problem to a free boundary problem, we obtain upper and lower bounds as well as the asymptotic behavior of the stopping boundaries.
"Optimal Stopping and Sequential Tests which Minimize the Maximum Expected Sample Size." Ann. Statist. 1 (4) 659 - 673, July, 1973. https://doi.org/10.1214/aos/1176342461