fix(install): expect collab protocol v2 in smoke
The tarball install smoke imports @oh-my-pi/pi-wire and asserts the exported COLLAB_PROTO value. The chunked welcome protocol bump changed that contract from 1 to 2, so the smoke must assert the new protocol value alongside the package constant and tests. Fixes #3144
This commit is contained in:
@@ -170,7 +170,7 @@ mkdir -p "$TARBALL_APP_DIR"
|
||||
exit 1
|
||||
}
|
||||
wire_proto="$(bun -e 'import { COLLAB_PROTO } from "@oh-my-pi/pi-wire"; process.stdout.write(String(COLLAB_PROTO));')"
|
||||
[ "$wire_proto" = "1" ] || {
|
||||
[ "$wire_proto" = "2" ] || {
|
||||
echo "Unexpected @oh-my-pi/pi-wire COLLAB_PROTO: $wire_proto"
|
||||
exit 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user