[server][test] Replace a magic number with a constant