surrealpatch/tests/ws_integration.rs

29 lines
651 B
Rust
Raw Normal View History

// RUST_LOG=warn cargo make ci-ws-integration
mod common;
mod ws_integration {
use super::common;
/// Tests for the empty protocol format
mod none {
// The WebSocket protocol header
const SERVER: Option<Format> = None;
// The format to send messages
const FORMAT: Format = Format::Json;
// Run all of the common tests
include!("common/tests.rs");
}
/// Tests for the JSON protocol format
mod json {
// The WebSocket protocol header
const SERVER: Option<Format> = Some(Format::Json);
// The format to send messages
const FORMAT: Format = Format::Json;
// Run all of the common tests
include!("common/tests.rs");
}
}