forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cleanup] change generate-json-rpc-spec to cargo example instead of b…
…inary (MystenLabs#3103) * don't need to build generate-json-rpc-spec binary * fixup after rebase * fixup after rebase * minor doc fix * minor doc fix
- Loading branch information
1 parent
a4207b1
commit 715f0f4
Showing
7 changed files
with
67 additions
and
84 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) 2022, Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#[test] | ||
fn test_json_rpc_spec() { | ||
// If this test breaks and you intended a json rpc schema change, you need to run to get the fresh schema: | ||
// # cargo -q run --example generate-json-rpc-spec -- record | ||
let status = std::process::Command::new("cargo") | ||
.current_dir("..") | ||
.args(&["run", "--example", "generate-json-rpc-spec", "--"]) | ||
.arg("test") | ||
.status() | ||
.expect("failed to execute process"); | ||
assert!( | ||
status.success(), | ||
"\n\ | ||
If this test breaks and you intended a json rpc schema change, you need to run to get the fresh schema:\n\ | ||
cargo -q run --example generate-json-rpc-spec -- record\n\ | ||
" | ||
); | ||
} |