File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
bulk-model-sync-gradle-test/src/test/kotlin/org/modelix/model/sync/gradle/test Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import org.modelix.model.server.Main
24
24
import org.modelix.model.sleep
25
25
import org.modelix.model.sync.bulk.asExported
26
26
import java.io.File
27
- import kotlin.test.assertEquals
27
+ import kotlin.test.assertContentEquals
28
28
29
29
class PushTest {
30
30
@@ -51,9 +51,7 @@ class PushTest {
51
51
client.getReplicatedModel(branchRef).start()
52
52
}
53
53
branch.runRead {
54
- branch.getRootNode().allChildren.forEachIndexed { index, child ->
55
- assertEquals(inputModel.root.children[index], child.asExported())
56
- }
54
+ assertContentEquals(inputModel.root.children, branch.getRootNode().allChildren.map { it.asExported() })
57
55
}
58
56
59
57
applyChangesForPullTest(branch)
@@ -71,6 +69,6 @@ class PushTest {
71
69
graphNodes[1 ].name = " Y"
72
70
graphNodes[2 ].name = " Z"
73
71
}
74
- sleep(5000 ) // wait for changes to be sent to server
72
+ sleep(5000 ) // changes are pushed asynchronously to the server. wait for the propagation
75
73
}
76
74
}
You can’t perform that action at this time.
0 commit comments