faunadb-rust
faunadb-rust copied to clipboard
Tests fail due to missing "api_version"
The test_create_database_eval test is the only test to fail when running cargo test.
When I remove the following line, the tests work:
assert_eq!(res["api_version"].as_str(), Some("2.0"));
When I debug-print the res object, I see the following, which has name and priority, but not api version, so presumably the version of faunadb in the latest Docker image no longer includes it:
Simple(Object({"data": Simple(Object({"foo": Simple(String("bar"))})), "global_id": Simple(String("yiyo4aj5nydyy")), "name": Simple(String("test")), "priority": Simple(Number(UInt(10))), "ref": Annotated(Ref(Ref { id: "test", location: Some(Class { location: Ref { id: "databases", location: None } }) })), "ts": Simple(Number(UInt(1697318568080000)))}))