forked from rojo-rbx/rojo
Enable test for removing files
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
source: rojo-test/src/serve_test.rs
|
||||||
|
expression: "read_response.intern_and_redact(&mut redactions, root_id)"
|
||||||
|
---
|
||||||
|
instances:
|
||||||
|
id-2:
|
||||||
|
Children: []
|
||||||
|
ClassName: Folder
|
||||||
|
Id: id-2
|
||||||
|
Metadata:
|
||||||
|
ignoreUnknownInstances: false
|
||||||
|
Name: remove_file
|
||||||
|
Parent: ~
|
||||||
|
Properties: {}
|
||||||
|
messageCursor: 1
|
||||||
|
sessionId: id-1
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
source: rojo-test/src/serve_test.rs
|
||||||
|
expression: "read_response.intern_and_redact(&mut redactions, root_id)"
|
||||||
|
---
|
||||||
|
instances:
|
||||||
|
id-2:
|
||||||
|
Children:
|
||||||
|
- id-3
|
||||||
|
ClassName: Folder
|
||||||
|
Id: id-2
|
||||||
|
Metadata:
|
||||||
|
ignoreUnknownInstances: false
|
||||||
|
Name: remove_file
|
||||||
|
Parent: ~
|
||||||
|
Properties: {}
|
||||||
|
id-3:
|
||||||
|
Children: []
|
||||||
|
ClassName: StringValue
|
||||||
|
Id: id-3
|
||||||
|
Metadata:
|
||||||
|
ignoreUnknownInstances: false
|
||||||
|
Name: hello
|
||||||
|
Parent: id-2
|
||||||
|
Properties:
|
||||||
|
Value:
|
||||||
|
Type: String
|
||||||
|
Value: This file will be removed!
|
||||||
|
messageCursor: 0
|
||||||
|
sessionId: id-1
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
source: rojo-test/src/serve_test.rs
|
||||||
|
expression: redactions.redacted_yaml(info)
|
||||||
|
---
|
||||||
|
expectedPlaceIds: ~
|
||||||
|
protocolVersion: 3
|
||||||
|
rootInstanceId: id-2
|
||||||
|
serverVersion: 0.6.0-dev
|
||||||
|
sessionId: id-1
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
source: rojo-test/src/serve_test.rs
|
||||||
|
expression: "subscribe_response.intern_and_redact(&mut redactions, ())"
|
||||||
|
---
|
||||||
|
messageCursor: 1
|
||||||
|
messages:
|
||||||
|
- added: {}
|
||||||
|
removed:
|
||||||
|
- id-3
|
||||||
|
updated: []
|
||||||
|
sessionId: id-1
|
||||||
@@ -102,7 +102,7 @@ fn add_folder() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore] // TODO: Removing files currently hangs ChangeProcessor
|
// #[ignore] // TODO: Removing files currently hangs ChangeProcessor
|
||||||
fn remove_file() {
|
fn remove_file() {
|
||||||
run_serve_test("remove_file", |session, mut redactions| {
|
run_serve_test("remove_file", |session, mut redactions| {
|
||||||
let info = session.get_api_rojo().unwrap();
|
let info = session.get_api_rojo().unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user