Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

relay: refresh its copy of the vectors for GoAway removed

milind-soni9962bededac3
diff --git a/relay/test/token.test.ts b/relay/test/token.test.ts
index 43fac520bc..057d2a6c6f 100644
--- a/relay/test/token.test.ts
+++ b/relay/test/token.test.ts
@@ -6,7 +6,7 @@ import { parseTokenKeys, verifyToken } from "../src/token.ts";
import { keysJson, mintToken, testKey } from "./helpers.ts";
/** The SHA-256 the wire spec pins for vectors/v1.json; a stale copy here fails. */
-const PINNED_VECTORS = "734415cc7b8aa2f57de6788a72b058c2eb48a11fcfb20d0fab489cf46668ed00";
+const PINNED_VECTORS = "525279254e73d3a953957a9b8dd7b044051fa2d10ce349f409535022a5fbe30a";
const vectorsText = readFileSync(new URL("./vectors/e2e-v1.json", import.meta.url));
const vectors = JSON.parse(vectorsText.toString("utf8"));
const V8 = vectors.V8;
diff --git a/relay/test/vectors/e2e-v1.json b/relay/test/vectors/e2e-v1.json
index f1e46cc34f..fd91a31768 100644
--- a/relay/test/vectors/e2e-v1.json
+++ b/relay/test/vectors/e2e-v1.json
@@ -425,6 +425,15 @@
"length": 2,
"hex": "000300000000000000000002"
},
+ {
+ "name": "go_away_3",
+ "about": "GoAway removed: only from the computer, before it closes with 4001",
+ "type": 3,
+ "flags": 0,
+ "streamId": 0,
+ "length": 3,
+ "hex": "000300000000000000000003"
+ },
{
"name": "stream_3",
"about": "the next stream the phone opens",
@@ -2070,6 +2079,26 @@
"0001000100000005001c0000"
]
}
+ },
+ {
+ "name": "phone_hears_removed",
+ "about": "GoAway removed is no protocol error at the phone; it sends nothing back",
+ "role": "phone",
+ "steps": [
+ {
+ "open": true
+ },
+ {
+ "in": {
+ "header": "000300000000000000000003"
+ }
+ }
+ ],
+ "expect": {
+ "sent": [
+ "0001000100000001001c0000"
+ ]
+ }
}
]
},