Update snapshot files to standardize messageCursor redaction

- Replaced specific messageCursor values with a placeholder "[message-cursor]" across multiple snapshot files to ensure consistency in test outputs.
- Adjusted the test utility to add redaction for messageCursor, addressing non-deterministic behavior in macOS environments.
This commit is contained in:
Joe 2026-02-08 12:07:20 -06:00
parent e934912b4a
commit 6e323660e0
33 changed files with 39 additions and 34 deletions

View file

@ -22,5 +22,5 @@ instances:
Name: my-new-folder
Parent: id-2
Properties: {}
messageCursor: 1
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -12,5 +12,5 @@ instances:
Name: add_folder
Parent: "00000000000000000000000000000000"
Properties: {}
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -14,5 +14,5 @@ instances:
Properties:
Source:
"!String": "-- Edited contents"
messageCursor: 1
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -14,5 +14,5 @@ instances:
Properties:
Source:
"!String": "-- Original contents"
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -12,5 +12,5 @@ instances:
Name: empty
Parent: "00000000000000000000000000000000"
Properties: {}
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -24,5 +24,5 @@ instances:
Properties:
NeedsPivotMigration:
"!Bool": false
messageCursor: 1
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -1,7 +1,6 @@
---
source: tests/tests/serve.rs
expression: "read_response.intern_and_redact(&mut redactions, root_id)"
---
instances:
id-2:
@ -13,6 +12,5 @@ instances:
Name: empty_folder
Parent: "00000000000000000000000000000000"
Properties: {}
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -12,5 +12,5 @@ instances:
Name: forced_parent
Parent: "00000000000000000000000000000000"
Properties: {}
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -52,5 +52,5 @@ instances:
"!ContentId": "rbxasset://fonts/sword.mesh"
TextureID:
"!ContentId": "rbxasset://textures/SwordTexture.png"
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -60,5 +60,5 @@ instances:
Properties:
NeedsPivotMigration:
"!Bool": false
messageCursor: 1
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -142,5 +142,5 @@ instances:
Properties:
Value:
"!String": "File #5"
messageCursor: 1
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -12,5 +12,5 @@ instances:
Name: move_folder_of_stuff
Parent: "00000000000000000000000000000000"
Properties: {}
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -34,5 +34,5 @@ instances:
Properties:
Value:
"!Int64": 1337
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -34,5 +34,5 @@ instances:
Properties:
Value:
"!Bool": true
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -14,5 +14,5 @@ instances:
Properties:
Value:
"!String": "If this isn't named `no_name_top_level_project`, something went wrong!"
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -14,5 +14,5 @@ instances:
Properties:
Value:
"!String": "If this isn't named `no_name_top_level_project`, something went wrong!"
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -48,5 +48,5 @@ instances:
Properties:
NeedsPivotMigration:
"!Bool": false
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -130,5 +130,5 @@ instances:
Name: ProjectTarget
Parent: id-3
Properties: {}
messageCursor: 1
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -112,5 +112,5 @@ instances:
Name: ProjectTarget
Parent: id-3
Properties: {}
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -114,5 +114,5 @@ instances:
Name: ProjectTarget
Parent: id-3
Properties: {}
messageCursor: 1
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -112,5 +112,5 @@ instances:
Name: ProjectTarget
Parent: id-3
Properties: {}
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -26,5 +26,5 @@ instances:
"!Attributes": {}
Value:
"!Ref": id-4
messageCursor: 1
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -38,5 +38,5 @@ instances:
Properties:
Attributes:
"!Attributes": {}
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -12,5 +12,5 @@ instances:
Name: remove_file
Parent: "00000000000000000000000000000000"
Properties: {}
messageCursor: 1
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -24,5 +24,5 @@ instances:
Properties:
Value:
"!String": This file will be removed!
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -38,5 +38,5 @@ instances:
Properties:
Source:
"!String": Updated foo!
messageCursor: 1
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -38,5 +38,5 @@ instances:
Properties:
Source:
"!String": "-- Hello, from foo!"
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -24,5 +24,5 @@ instances:
Properties:
Value:
"!String": "Hello, world!"
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -76,5 +76,5 @@ instances:
Properties:
Value:
"!String": "Hello, from qux (a .rojo file that's turned into a StringValue)!"
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -24,5 +24,5 @@ instances:
Properties:
Source:
"!String": "return {\"This file has no extension but should be a ModuleScript named `no_extension`\"}"
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1

View file

@ -36,5 +36,5 @@ instances:
Properties:
Value:
"!String": "If this isn't named `not_a_project`, something has gone wrong!"
messageCursor: 0
messageCursor: "[message-cursor]"
sessionId: id-1