Skip to content

Commit 7aae091

Browse files
authored
C# tests - update snapshots (#3321)
# Description of Changes I chose to regenerate all of the bindings in #3310, but that caused the snapshots to change. This PR follows up to update them. I also updated the outdated script `tools~/gen-quickstart-chat.sh` (which was generating from a different module than the CI was), and updated the CI to use it instead of manually running a similar command. # API and ABI breaking changes Test-only changes. # Expected complexity level and risk 1 # Testing - [x] unity-testsuite passes on this PR (which it does not on `master`). --------- Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
1 parent 9b98d5c commit 7aae091

9 files changed

Lines changed: 31 additions & 31 deletions

File tree

.github/workflows/csharp-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
- name: Check quickstart-chat bindings are up to date
8686
working-directory: sdks/csharp/examples~/quickstart-chat
8787
run: |
88-
spacetime generate --lang csharp --out-dir client/module_bindings --project-path server
88+
bash ../../tools~/gen-quickstart.sh "${GITHUB_WORKSPACE}"
8989
# This was copied from tools/check-diff.sh.
9090
# It's required because `spacetime generate` creates lines with the SpacetimeDB commit
9191
# version, which would make this `git diff` check very brittle if included.

sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/IdentityConnected.g.cs renamed to sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/ClientConnected.g.cs

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/IdentityDisconnected.g.cs renamed to sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/ClientDisconnected.g.cs

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/SendMessage.g.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/SetName.g.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdks/csharp/examples~/quickstart-chat/client/module_bindings/SpacetimeDBClient.g.cs

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdks/csharp/examples~/quickstart-chat/client/module_bindings/Types/Message.g.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdks/csharp/examples~/quickstart-chat/client/module_bindings/Types/User.g.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdks/csharp/tools~/gen-quickstart.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ SDK_PATH="$(dirname "$0")/.."
77
SDK_PATH="$(realpath "$SDK_PATH")"
88

99
cargo build --manifest-path "$STDB_PATH/crates/standalone/Cargo.toml"
10-
cargo run --manifest-path "$STDB_PATH/crates/cli/Cargo.toml" -- generate -y -l csharp -o "$SDK_PATH/examples~/quickstart-chat/client/module_bindings" --project-path "$STDB_PATH/modules/quickstart-chat"
10+
cargo run --manifest-path "$STDB_PATH/crates/cli/Cargo.toml" -- generate -y -l csharp -o "$SDK_PATH/examples~/quickstart-chat/client/module_bindings" --project-path "$SDK_PATH/examples~/quickstart-chat/server"

0 commit comments

Comments
 (0)