Skip to content

Commit e5798b7

Browse files
committed
chore: use non-master branch in unit test to demonstrate the correct usage
1 parent 3c77848 commit e5798b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

model-server/src/test/kotlin/org/modelix/model/server/ReplicatedRepositoryTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ class ReplicatedRepositoryTest {
123123
}
124124

125125
val repositoryId = RepositoryId("repo1")
126-
clients[0].initRepository(repositoryId)
127-
// val branchId = repositoryId.getBranchReference("my-branch")
128-
val branchId = repositoryId.getBranchReference()
126+
val initialVersion = clients[0].initRepository(repositoryId)
127+
val branchId = repositoryId.getBranchReference("my-branch")
128+
clients[0].push(branchId, initialVersion, initialVersion)
129129
val models = clients.map { client -> client.getReplicatedModel(branchId).also { it.start() } }
130130

131131
val createdNodes: MutableSet<String> = Collections.synchronizedSet(TreeSet<String>())

0 commit comments

Comments
 (0)