Add timeout to fix Travis build.