Skip to content

Commit

Permalink
Include beamline in test query
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoliaw committed Dec 18, 2024
1 parent 9b592f6 commit 70f3c88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ mod tests {
async fn scan(#[future(awt)] env: TestEnv) {
let query = r#"mutation {
scan(beamline: "i22", visit: "cm12345-3", sub: "foo/bar") {
visit {directory visit} scanFile scanNumber
visit { beamline directory visit} scanFile scanNumber
detectors(names: ["det_one", "det_two"]) { name path }
}
}"#;
Expand All @@ -702,7 +702,7 @@ mod tests {
assert!(result.errors.is_empty());
let exp = value!({
"scan": {
"visit": {"visit": "cm12345-3", "directory": "/tmp/i22/data/cm12345-3"},
"visit": {"visit": "cm12345-3", "beamline": "i22", "directory": "/tmp/i22/data/cm12345-3"},
"scanFile": "foo/bar/i22-123",
"scanNumber": 123,
"detectors": [
Expand Down

0 comments on commit 70f3c88

Please sign in to comment.