ci: simplify conformance while running against both spec versions (#1060)
This commit is contained in:
parent
2047ae42ec
commit
1f63e43479
2 changed files with 22 additions and 62 deletions
|
|
@ -943,8 +943,7 @@ fn preferred_protocol_versions() -> Vec<ProtocolVersion> {
|
|||
preferred_versions
|
||||
}
|
||||
|
||||
/// Runs draft stateless scenarios through the public discover lifecycle and
|
||||
/// Streamable HTTP transport.
|
||||
/// Runs scenarios through the discover lifecycle and Streamable HTTP transport.
|
||||
async fn run_discover_client(server_url: &str) -> anyhow::Result<()> {
|
||||
let preferred_versions = preferred_protocol_versions();
|
||||
let transport = StreamableHttpClientTransport::from_uri(server_url);
|
||||
|
|
|
|||
|
|
@ -1740,10 +1740,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
tracing::info!("Starting conformance server on {}", bind_addr);
|
||||
|
||||
let server = ConformanceServer::new();
|
||||
let stateless = std::env::var_os("STATELESS").is_some();
|
||||
let config = StreamableHttpServerConfig::default()
|
||||
.with_legacy_session_mode(!stateless)
|
||||
.with_json_response(stateless);
|
||||
let config = StreamableHttpServerConfig::default();
|
||||
let service = StreamableHttpService::new(
|
||||
move || Ok(server.clone()),
|
||||
LocalSessionManager::default().into(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue